In my locale, it is easy to get penned in without any notice. It can happen in seconds. I always try to think of an exit route in almost every situation, like never pull up to a vehicle at a stoplight more than I can quickly steer my vehicle out of in case that vehicle is stalled.
Rule of thumb I use is that I must see asphalt under the bumper to rear tires, then I know I can quickly maneuver out of that spot.
Yep - situational awareness is your friend...just have to be prepared to “do the unthinkable” if it is a choice between them and your own safety...