Community A beats the virus through mass testing, isolation, culture, and borders.
Community B takes its losses but develops herd immunity.
B is more robust to future outbreaks of the same or similar viruses.
A is more robust to completely novel pathogens and to bioweapons.