I tend to be relatively successful (I'm a student) compared to my friends, so many times, when my friends tell me about their failures (did poorly on a test, got rejected by a college, etc.), I'm not sure how to reply. I want to let them know that it's really not a big deal and I genuinely still think they're great, capable people.
Below are some of the ways I tried to say this and some of the ways my friends have mistook it:
Me: It's ok. [Things] will get better.
Friend: It's not ok. You don't understand how I'm feeling because you've never been in this situation before.
Me: That doesn't matter much in the long run anyway.
Friend: It doesn't matter for you because you're smart, but I'm not.
Me: Honestly, this doesn't represent your ability in any way. You're still a really capable person.
Friend, thinks: Yeah right, you're probably just saying this to sugarcoat the situation. Like do you actually think I'm capable since I'm so much worse than you.
Me: A lot of other people also [failed].
Friend: Well, I don't want to be a part of those people.
These solutions didn't seem to work for me. Is there a better way to respond to these admissions of failure that is supportive?