Like the mayor, I also mostly wear helmets to get people to stop yelling at me about helmets.
Helmets are often misinterpreted as the solution to safety. Put simply, they aren't. Helmets protect your head from an uncontrolled fall. Proper infrastructure is what protects you from multi-ton vehicles. Don't conflate the two, they are worlds apart.