being isolated myself i can sympathize but as someone who has been in a psych ward multiple times i can tell you it is unlikely to give you what you want.
You dont mention where you are my experience is in the USA so it's all i have for reference
It's boring, I mean really boring. No phone, no internet, limited to no TV which you will share with others. Sometimes people there with you are violent, others are just odd. Most of these places are designed to bring you past a crisis and nothing more, so no therapy really except likely some "group therapy" that lacks any meaningful connection or even actual therapy.
In the US it cost thousands, and thousands of dollars and insurance here is much more likely to deny an inpatient mental health claim than any other type of claim ( work for an insurance company)
Being suicidal sucks, being lonely sucks, but there are people out there with mental health issues even more difficult to understand, and often this can make them difficult to interact with anyway, most of these people are in and out most of their lives. Once you are in even if it was "voluntary" if they think you may be a danger to yourself or others they can keep you anyway.
They cant really force you to take medication, but it probably would not go well for you. There are better options
As someone in a similar situation i also know those options kind of suck/are not really options with issues of your own, but this is unlikely to get you what you want anyway and comes at great expense.
Find a local support group, use meetup.com, hell go to an AA/NA meeting, do anything but this, it's just not worth the headache