You're conflating three concepts: forcing people to be vaccinated, banning speech opposing compulsory vaccination, and banning speech arguing that vaccines are a bad idea. In a free society, only the first has any possible justification (based on harm to others if you aren't vaccinated). The second is core political speech. The third is core scientific speech.