Both of those examples just point to the value of having true support from a larger community. If you see someone suicidal or who has never known true familial support, try to bring them in and teach them what a true and healthy family looks like. And if you ever find yourself in that position, you want try to crawl your way out and into better networks and a state of mind, as confusing and painful as that may be.
Committing suicide alone or forever living without an understanding of true compassion are not good outcomes that should just be accepted.