Here and here are a couple of videos where they tested some ways of escaping a sinking car.

Consensus: get out as early as possible, and breaking the glass is quicker & more effective than waiting until you can open the door.