We are all sinners, all selfish...differing only in degree, manifesting in ways as diverse as our fingerprints.
These situations are not cut and dried...I use the analogy of the many fibers and strands braided together to form the rope of one who has committed suicide by hanging.
Medicaiton or lack thereof is a fiber. So is each relationship, so is each self-perceived (or actual) failure. There may be a final trigger but that is still only one of many fibers.
I was protesting, so to speak, against the use of the word “selfish” to describe suicide, which you didn’t use, but which is commonly used, here and elsewhere all the time.
I’ve known only one suicide of someone close to me, a friend, a long time ago, and I still cannot forgive myself for failing him, even though I wasn’t who was the closest to him at the time.