Mentioned feeling suicidal to the wrong friend and he freaked out and gave me the classically unhelpful/actively harmful pep talk and advice without ever trying to fucking understand and it makes me feel so fucking invisible. Like, people only care about me when I impact them by upsetting them at the thought of me harming myself. They don't actually care, they just want to make themselves feel better, so I get the "be better, I don't want to hear about you being suicidal anymore" talk so they can put my mental illness in the "done" pile and go back to not thinking about me. I do have a couple friends who will actually listen and empathize and understand, but there's only so much you can lay on someone before it drives them away.
So, at first, this won't feel good. At first; this is going to hurt but eventually you will realize (I hope) that this is totally normal.
It's not that your friend doesn't care about you - they stuck around and gave you the bullshit spiel, and that doesn't happen if they don't give a fuck. I understand that it feels dismissive, but they wouldn't have given you that "bullshit pep talk" if they didn't care. They're not professionals, and they're not trained - they will NEVER get it right, and they shouldn't have to. They're your friends, not your therapists.