Glad you're okay.
Driving around parked cars, always get out in the middle of the lane, which is to say leave enough space to pass by a suddenly-opening door, and people emerging from the sidewalk into the street to get into their cars. In car v. bike accidents, you can legally win, but still lose. It's better not to have them, part of which is learning defensive-riding methods.