Some fighter airplanes have software that prevents an inadvertent crash into terrain. Not real new stuff.
Keep in mind, though, the fighter pilot does not want to die in a CFIT. He has a distracting mission though. Once he returns to base, his purpose is to make a safe approach and landing.
However, if he decides to kill himself on short final, he will succeed.
Same for any airliner.