"Sometimes, after you've tried really hard and failed, you feel like giving up. The cool thing about life is that it's okay to give up. It is totally okay. But it's also totally okay to keep trying even harder. The really hard thing about life is making a choice between these two."
-- Teleglitch death screen
Death is a. . .peculiar thing in video games. At times it is the most compelling piece of gravitas the medium can bring to bear: a permanent, destructive operation in an interactive environment. At others, it's the least consequential thing you could imagine: a minor setback, discarded from the world's memory when you're forced to reload and try again. A fail state, as they're often referred to.
Games - in the traditional sense, at least - are kind of about their challenges, which in turn makes failure a sort of glitch in the system. Protagonist's aren't supposed to fail. The hero is triumphant and the villain defeated with their plans sundered; that's how it's supposed to go. Imagine for a moment if Luke never learned how to use the Force, or if Tony Stark died of his heart condition before he made the Iron Man suit. It'd be weird, right? The question isn't whether or not the main character will overcome their struggles, it's how they'll do it. It's the same with games. Despite being about their challenges, games are meant to be beaten; it's a paradox where obstacles are designed to stop you but simultaneously are meant to be torn down.