Acknowledging your feelings is a good first step.
The next step is to realize and accept that you can only impact things that are within your sphere of influence. Focus 100% on those things, especially the things that make you happy.
Note that you rarely know the full story behind someone else’s success. It may have been luck, it may have been privilege, it may have been that they are simply able to perform at a level that you are not capable of (at least not yet). All of those things are OK — just focus on what you have influence over.