dont compare or compete with your frnd being competitive to an extent is okay but to the time.you start feeling like if you cannot come before them its not it for you then you should stop rather look at your progress and compete with your own self that will make you feel good about yourself .
Your only competition should be YOU. Instead of competing with others, we must complete with ourselves and try being a better version of ourself. Outdo yourself every time. You can only work hard, but the outcome is not in your hands. Do your best, and one day you might overtake him. But don't stress out too much
is there some sort of reason why you compete with your friend?
in the last, who wins and who fails doesn't matter. zindagi subject wise imtehaan nahi leti. learning is much more than marks, being good than friends. it's you how you will take the knowledge and use it