I agree, unless faith actually means something to you, forcing yourself to go to church won’t help. Sitting through Mass miserable, disbelieving, and avoiding everyone defeats the whole purpose.
Churches get brought up a lot because they regularly gather people (weekly or even daily) and offer events, volunteer opportunities, and so on.
The point is to find an activity you like, with a specific group of people and consistently attend.
P.S As a fellow Catholic, I’m really sorry you went through such an isolating experience. I hope things feel much better for you now