A PhD in Arithmetic Geometry and a publication in a top tier journal is hardly mediocre in and of itself, as far the author is concerned. The equivalent for a software engineer is probably a leading AI engineer, with a strong publication count. I think a lot of people who are not mediocre are unaware of what mediocrity actually is. Yeah if you're only in the top .1% and comparing yourself to the literal best in the world, you will feel mediocre in that sense . A mid mathematician maybe publication in worse journals, teaching community college.