Get the hell out of there - if they ain’t smart enough to get out of the way, too bad for them...dead people don’t have their day in court - don’t worry so much about them that you become a “day in court-deprived” person.
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.