I really don't like hypothetical situations like this, I'd like to think that I would have the foresight to avoid this kind of predicament.
But if for some reason I DID find myself in such a dilemma...
If it was the best friend I'm thinking of right now, then yeah I'd jump out, of course then I'd get away too.