The COVID-19 pandemic presents a unique opportunity to study how humans allocate scarce resources in times of hardship. We study public preferences regarding who should get access to government aid for the self-employed, a bed in the intensive care unit, and permission to cross the border using original conjoint survey experiments administered to an incentivised online panel in Switzerland during the first and second waves of the pandemic in 2020. We find that across the three areas, even in extraordinary circumstances such as the COVID-19 pandemic, evaluations of deservingness to aid and support are still based on an underlying logic of conditional solidarity and identity: in all experiments, contributing to the community, be it through past actions and contributions or through current efforts, plays a crucial role in determining an individual’s deservingness, as does their nationality (and legal status) with nationals being perceived as more deserving than non-nationals.