I recognize that it is ill-advised to normalize forced medical intervention and I thank you for pointing out that my initial comment appears to be doing that, and I shall make a point to reflect on this, but I do maintain that during times of crisis the state/society should have the right to compel individuals in ways that are otherwise not acceptable.
I think my comparisons are more apt because they involve sacrifice and risk, but not incontrovertible harm. People getting the vaccine were mitigating a personal risk which at that time happened to be in line with what was believed to be a societal need (herd immunity) -- a minute chance of an adverse effect, compared to the yet-unknown effects of covid itself was deemed to be acceptable.
Was it a poor decision? Looking back on it, yes. If placed in the same position of a society-disrupting and mass-death causing pandemic with a new vaccine which has all the signs of being able to fast-track herd immunity and save millions of lives, would I be fine with mandatory vaccinations? Probably. Should we be incredibly careful when it comes to doing things like that and putting in place the mechanisms for similar actions? Absolutely.