This isn't about behavior, unless you mean blindly following authority (in which case those civilizations had huge downsides). This is about a medical treatment for a disease that is objectively not a civilization-ending threat, by any measure.
The problem is forcing people to take a specific medical treatment (it's not about immunity from the virus, it's about the specific treatment ONLY), and using fear as a justification to control society.
What you're calling "collective good" is exactly how past atrocities have happened. Anytime there has been genocide or millions of people getting slaughtered, it's because one side decided it was for the collective good. It's a cliche argument that can go both ways and says nothing about the actual reasons for implementing force across a society.
In my (EU) country you need to be vaccinated to go into most shops, restaurants, bars, and beauty services. However you can freely go to your office and not wear a mask. Even the people working in places where as a customer you need to be vaccinated, do not themselves need to be vaccinated.
I'm fully vaccinated, but I have friends who are not. The people who do not want to be vaccinated have their reasons, and I doubt these restrictions which cause mild inconveniences at best (compared to lockdowns like last winter, where some stores were closed for 3 month and you couldn't leave your city) are really going to make them change their mind. If they really want everyone to be vaccinated, they should just come out and say that, then work to get it passed into law.
But when discussions over the degree to which measures actually benefit the collective good are suppressed, both top down (tech censorship) and bottom up (downvotes and social shaming), you are moving into the territory of tyranny/oppression.