This is apples and oranges and pears and grapenuts.
The issue with antibiotics is that their casual use selects for the resistant strains in the general population, which then become predominate, ( according to this logic ) and the casually used antibiotic becomes ineffective.
I don’t think this line of reasoning applies to the other examples you mention. Correct me if I’m wrong ... and I mean that sincerely!
“The issue with antibiotics is that their casual use selects for the resistant strains in the general population, which then become predominate, ( according to this logic ) and the casually used antibiotic becomes ineffective.”
That is essentially correct. The problem is increased by some countries where antibiotics are sold over the counter. To make matters worse, bacteria have very efficient ways of transferring antibiotic resistance between individuals and even between very different species.