M0nica
Wearing a mask includes how it is worn and if generally people people are not wearing masks properly, and from my observed experience over the last three years, is that most people are not wearing masks properly, mainly the problem is a lack of air tightness around the edges of the mask between mask and person then there proabably more dangerous being worn thsn unworn as they engender a false state if security.
As we're a year or so into a false sense of security right now, with people dropping like flies with covid19, and serial reinfections with covid19, I find that somewhat ironic.
However, the fact that they aren't used properly doesn't in any way invalidate the fact that properly fitted, correct specification, masks prevent infection by aerosols. Your first assertion that masks don't work was wrong.