Many years ago the author Richard Bach, then writing for Flying, proposed that the solution for a pilot who had flown into a box canyon and could not turn between its walls was to pull up into a vertical climb, perform a stall turn and recover going in the other direction.
Pilots who had never performed a stall turn in their lives and hoped never to have to probably did not find this advice helpful. For them, it was preferable to not fly into a box canyon at all, or, if they had to do so, to do it in a helicopter.