I am a first year MS student in an STEM area. For many reasons I didn't enter this subject area and didn't gain ANY research experience until last summer, when I was 26 (now 27). So starting next fall in 2023 I'll likely be a PHD student either in my current school or some other school.
So I'll be 28 when I start my PHD, and if nothing goes wrong, I will get my PHD between the age of 32 and 34... From what I know, this age will not bring me any disadvantage in the job market, either in academia or industry in most of the western countries (not 100% sure, please correct me if this is wrong).
I believe my depression from this mainly comes from the psychological factor: I feel I am inferior compared to younger people in my program who started their PHD at a younger age; even worse, this is my second MS and I didn't even have any significant work experience in industry, so I don't have that excuse either. For a few years, this has often caused me severe psychological trauma and many times an urge to cry, especially when I socialize with those kids and we (casually) talk about age. This isn't right, but I do care about others' opinions, sometimes to an extreme level, and I constantly fear being regarded as inferior or incompetent by my school mates. I also fear that I'll never be as successful as people who started PHD young (I know there are many counter-examples on this, but I don't have that confidence on myself).
Weird enough, in my group there is a student who is even a few years older than me, and seems to be comfortable. I don't have any prejudice against him at all and we are good friends. But when the same thing happens on me, I just can't get through it.
For people with similar experience, how would you get rid of it? Any help or insight is appreciated.