You (probably under 125 Kg) + bicycle (probably under 20 Kg) vs even a compact car (probably over 1000 Kg... probably a LOT over). Guess who wins (e.i. lives).
As a frequent cyclist I am regularly amazed at the incredibly stupid things I see others do. Often because they don't know better (e.g. riding on the wrong side of the street) or because they are on power trip (e.g. it's legal to use the full lane even though it is wide enough to allow a car to safely pass).
The first rule of the road for every cyclist who wants to continue being one into his/her 70s is NEVER do anything unexpected by a car. You my end up dead and the car driver may have his/her life ruined because you 1) Don't know the rules of the road, 2) Don't care, 3) You ego and competitive instinct tell you to show them who's boss!
I wish drivers knew the rules, too. I have almost been hit twice because divers turned right in front of me without moving into the bike lane as required and I bet they don't know that they are supposed to do so. I lived to tell the tale because I assumed that the car (or, in one case, the bus) just might turn right without realizing I was there and was able to dodge them. Always, always assume the driver is on his/her phone or otherwise unaware you exist and has no idea of the rule of the road. You will be annoyed at times, but you will live longer (on average).