Flu and covid vaccines DO stop transmission of the viruses. But for the vaccines more people would get the virus. Those who do get the virus have lower viral loads and so spread it less.
To suggest that if one infection occurs that the vaccine doesn't stop the virus is both puerile and incomprehensible,