I like this. I think a lot of nerdy types forget that poor grades can be really upsetting because when they were that age their biggest problems were to do with dealing with other kids.
I know that feeling. I worked so hard to get a part for a play to add dramatic effect, guess what, I didn't get the part! I was instead beat by some popular girl who doesn't try at all (No more class votes when choosing pupils, please...), and felt so horrible.
I just realized, when I try so flippin' hard to get something, I don't, and when I don't try, I get it. .-.
I don't think you do get it if you think the other girl didn’t deserve it. A big part of the pain of failure is been disappointed in your self, not feeling betrayed by a world that deprived you of something you rightfully deserve