Good point, the only thing is the mediocre doctor still invested more time and more interactions with others people due to time invested to complete the degree which contribute to higher compensation.
I think the doctor also is a proof of (human) work due to amount of studies the doctor needs to invest, unless the doctor just cheated to get the degree, then that's a different story.
Notes by HeyWatchItGuys | export