While I agree with much of what you said, there are other issues with psychology and psychiatry that they often can't treat some environmental causes or triggers. When I was suicidal, it was also the feeling of being trapped in a job where I wasn't appreciated and couldn't advance.
If I were placed in an inpatient facility, it would only have exacerbated the issues where I would have so much to deal with the try and be on medical leave before I got fired for not showing up.
That said, for SOME mental illnesses ECT it can be a valid treatment. We don't know how the brain works, but we've seen correlation where ECT kind of resets the way the brain perceives the world temporarily. All medical decisions need to be weighed against the side effects and determined if the benefits outweigh the risks.
The other issue with inpatient facilities is that they can be incredibly hard to convince the staff that you are doing better. All actions are viewed through the lens that you are ill and showing the staff you are better is just trying to trick the staff to get out.