I’m not sure exactly what your question is, but from your email it seems that your insecurity is coming from comparisons and that you would like to find a way to stop doing this to yourself.
Cognitive-Behavior Therapy (CBT) is your best bet. Since you are at your university I would make an appointment with the university’s counseling center and explain your thought process to one of the counselors there. They can give you some tools for helping.
In the meantime, I highly recommend the book The Resilience Factor for you to begin learning these tools for yourself.