How do I deal with this kind of rejection?

To follow-up on the question how could you possibly not be in the top 12.8% at Swarthmore – the answer is that you are applying with a group of self-selected students. Of course there are always a few outliers who apply on a whim without a realistic chance of acceptance but the vast majority of seniors who apply will be in the academic range for the school, have outstanding ECs, are well qualified to attend, and would succeed if accepted. So you are competing against an absolutely outstanding pool of applicants, not a random collection of HS seniors. In addition, the school looks to fill certain needs (athletics, legacy etc.), looks for a certain level of diversity etc. It is a numbers game (only 1,000 acceptances some of which are binding ED) and it is quite reasonable that even an outstanding student like yourself doesn’t get in.

I hope you find happiness and success wherever you end up.