You'd be surprised how much give car door hinges have. I've managed to almost rip doors off their hinges before when people door me. They are also very surprised when they call the cops as a result of this and receive a ticket for breaking the law.
If somebody opens their car door into the bike lane and after slamming on my brakes, and I can see that I'm not going to stop in time:
1. Try to skid sideways. Your body will impact the door predictably and you will stop. (Same advice when a car pulls a sudden illegal U-Turn.) Having your front wheel impact the door first could result in any number of bad outcomes.
2. Always opt for the door collision instead of swerving out into traffic to avoid the door. The cars behind you are far more deadly than the door is.
No matter the type of collision ALWAYS call 911 and get the driver's information. The police report is key to getting the driver's insurance to pay for your injuries and damage to your bike. You also should always say yes if the 911 operator asks if you need medical attention. You are running on adrenaline and may be in shock after a collision with a car. You will not start hurting until after some time passes.