Thank you for your question. I would suggest that we have some evidence to show that coercive actions can only be used as a last resort. For example, forcing people living with TB into sanatoriums earlier in the 20th century resulted in their avoiding public health authorities, going underground and actually continuing the spread of TB.
We have had a massive cultural change as well over the last 100 years in the public's attitude towards science and authority. We only have to look at the growth of vaccine hesitancy and vaccine denial to see that just telling people the right thing to do does not work anymore. We have to convince people and bring them along that path. It takes time, unfortunately, and we don't always have time to do it, but it is actually what works.