Of course the OP would never have had the accident if he hadn't been wearing a helmet. The time to put it on and the extra wind resistance meant that instead of passing safely in front of the car before it pulled out the OP was in the wrong place at the wrong time.
How many of you helmet gauleiters wears a hi-viz every time you get on a bike on the road. Far more likely to save your skull.
No need to link Godwin's law, I'm aware of it.