That's not the real cost. They could double the number of doctors by cutting the amount of education required by half, and get better results. And they wouldn't need to expand medical school capacity at all.
The amount of education doctors get is harmful. It actually makes them worse at their job. It's effectively a form of hazing by AMA.
There's a combinatorial explosion of effects and side effects in the human body.
It's important to learn and memorize, and memorization is undervalued, but not to that extent. It's like memorizing optimal solutions to traveling salesman instances. Other times it's like memorizing a times table of the three-digit numbers. That is a waste of time and will make you a much worse mathematician.