It is unfair to compare a western democracy with a totalitarian government. China has options that we have collectively decided we don't want to have.
p.s. I don't think Americans collectively decided anything about what options we would use to combat the virus. The federal executive branch effectively decided to do nothing, or nothing coherent and consistent, and states have individually scrambled to come up with their own responses, with varying levels of effectiveness.