Blaming disease spread on density is kind of a cop out after how we saw the world respond to crisis. Singapore, Taipei, Hong Kong, and most Chinese cities are super dense places that, for most of 2020, I would have preferred to be living in compared to the US.
The success of these cities is due to political action that is unpalatable to most in the west. Hong Kong in particular demonstrates what happens when even vestigial western ideals and the necessary political structures for this sort of action mix.
You can look at San Francisco which did better than most places in the US. It was actually funny to watch tech bro's flee the city for places where the pandemic ultimately hit far worse.