suicide isn't a moral failure. it's not the result of someone failing mental health treatment. it's not because they didn't try hard enough, or didn't want to get better.
it is the result of an individual having to cope with things so profoundly distressing to the human bodymind. this can be emotions, past trauma, sociopolitical environments, financial difficulties, relationship issues, current abuse/neglect, chronic illness, and so much more.
at a certain point, the brain has long since kicked into survival mode, and is literally slamming the gas on every base-brain survival instinct it has. freeze: you cease to exist; you cannot do anything and you (as you existed alive) will not be seen. fight: against the self, others, society, love, hate, future suffering, etc. flight: you are no longer in the state/situation you were in (but where are you, then?)
the most heartbreaking, IMO/IME, is fawn. the belief that the world is better off without you. the relief that now you will not burden anyone. the hope that maybe they'll remember you kindly, despite the cruelty while you were alive. or, even, hoping no one remembers you at all, so not even your memory can trouble others.
does that sound like failure to you? or does that sound like someone who has been so, incredibly, deeply hurt throughout their life - maybe without them even noticing, clearly or at all - that they can't see themselves existing.
and moreover: do you think shame, blame, and interrogation will make that person want to stay alive? or do you think they'll just internalize it until they "make a permanent decision to a temporary problem?"
(case to be made all decisions are permanent and all problems are temporary but that's enough, me)