Of course safety is important. Not having lights on your bike in winter is very dangerous (drivers can't see you in their mirrors) and the police do frequent random stops and issue fines.
Anecdotally a friend of mine was in a very bad cycling accident (hit by a bus). She had no helmet and it wouldn't have helped. After months of rehab for her broken leg she is cycling again without a helmet. Of course she could have fallen differently and a helmet would have helped, but most of the damage was caused by the collision and not the fall.
This happens in two ways: car drivers drive more dangerously when they see a helmet; less people ride a bycicle and so there is more pollution and more deaths or more lack-of-exercise related death.
In the U.S. and U.K.. sadly this is true. ( http://news.bbc.co.uk/2/hi/uk_news/england/somerset/5334208.... )
"Dr Walker thinks the reason drivers give less room to cyclists wearing helmets is because they see them as 'Lycra-clad street warriors' and believe they are more predictable than those without."
"To test another theory, Dr Walker donned a long wig to see whether there was any difference in passing distance when drivers thought they were overtaking what appeared to be a female cyclist.
"While wearing the wig, drivers gave him an average of 14cm more space when passing."
However, allowing this to remain true is victim blaming. A driver should be forced to respect a cyclist and give them room.
In California, (yeah California) there is now a 3 foot minimum passing distance ( https://calbike.org/advocacy/giveme3/give-me-3-faq/ )
"The law is invaluable when a bicyclist is injured in a collision. It establishes a clear basis for citing motorists for unsafe passing."
"How do motorists give three feet on narrow roads?
"State law has never guaranteed motorists a right to pass whenever or wherever they want. Motorists may only pass when it’s safe to do so. This doesn’t change with the Three Feet for Safety Act.
"The new law requires motorists to slow down and wait to pass only when it is safe to do so. Motorists have to be prepared to demonstrate that three feet were NOT available and the slower, closer pass was done according to the law. This is a higher burden of proof for drivers than we have under the current law, which places no conditions on how to pass at a “safe distance.”
So hopefully, the police will aggressively ticket motorists acting in a way that is unsafe for cyclists.