One way to avoid feeling mediocre is to stop measuring life in only one dimension.
Money and a single career path allow you to rank yourself above or below someone else quite easily.
If you consider the endless number of factors that also make you a valuable person, you may lose track and be happy with just being a unique entity anyway.
And be careful of trying to be more unique than others, you'd be falling for the same trap.