No insult to the Harvard grads I know. But the median grad isn't Einstein, and they won't magically earn back $5 million/year. They're not that special, on average.
Now, if you have an AGI that can reliably and repeatedly do Einstein-level science, then I'd argue that we're starting to talk about ASI, aka, "superintelligence." Which would be providing something that humans can't consistently produce at any cost. So cost becomes much less relevant.
But if the best you can do is replace an ordinary smart human for $5 million/year, you have to compete with ordinary smart humans. Who are abundant and who very rarely cost more than $500,000/year, if you're willing to shop around and gamble a bit.