1. No matter how hard you study, there will indeed always be
someone better than you. If that makes you stupid, then I would say
that the whole world is stupid since there's someone else who's
always better than each of us.
And if the whole world's stupid, then you are not stupid.
It's just like if the whole world consists of superhumans, then no
one is superhuman.
2. Likewise, no matter how hard you work, there will always be
someone who works harder than you.
And for all you know that guy who works till 3am might be doing so
because he's less efficient than you are.
Cheers.