Disasters often create inequitable consequences along racial and socioeconomic lines, but a pandemic is distinctive in that communities must navigate the ongoing hazards of infection exposure. We examine this for accessing essential needs, specifically groceries. We propose three strategies for mitigating risk when accessing groceries: visit grocery stores less often; prioritize generalist grocery stores; seek out stores whose clientele have lower infection rates. The study uses a unique combination of data to examine racial and socioeconomic inequities in the ability to employ these strategies in the census block groups of greater Boston, MA in April 2020, including cellphone-generated GPS records to observe store visits, a resident survey, localized infection rates, and demographic and infrastructural characteristics. We also present an original quantification of the amount of infection risk exposure when visiting grocery stores using visits, volume of visitors at each store, and infection rates of those visitors’ communities. Each of the three strategies for mitigating exposure were employed in Boston, though differentially by community. Communities with more Black and Latinx residents and lower income made relatively more grocery store visits. This was best explained by differential use of grocery delivery services. Exposure and exposure per visit were higher in communities with more Black and Latinx residents and higher infection rates even when accounting for strategies that diminish exposure. The findings highlight two forms of inequities: using wealth to transfer risk to others through grocery deliveries; and behavioral segregation by race that makes it difficult for marginalized communities to avoid hazards.