My best friend and long time training partner was feeling especially frustrated after a 10k, after a period of several years when he'd not been training as seriously as before. We were close at all distances though he was usually faster at less than two miles while I was faster at the distances.
We were in our 30's then which was several decades ago. He sat in my car in the rain after the race talking about how frustrating it was that some overweight "jogger" had beat him and it turned out was running less mileage, then he burst into tears. It was rather emotional seeing my friend so upset.
I let him cry a bit (trying not to myself) then said, "Well (name), I've always had to run more mileage to try and keep up with you". He thought about that and it got his attention. First he said no, then realized it was true. When he was running 60 miles a week I was running 80, when he ran 70 which was the most he ever did, then I was running 100. What he did worked for him and I had to run more to keep up with him.
The rest of the advice here is good too. You run for yourself and the talent that you have, not based on the talents of somebody else. You have no control over that.