Ok let's do this.
Nurse, 100k salary, no debt. Takes home 75k/year from age 23-70. That's $3,525,000.
Doctor, 180k salary, 500k debt after interest. Takes home 135k after taxes. We'll even give him a high malpractice and say he only gets $100k after taxes+malpractice from age 29-70. To repay $500k in debt is $4200/mo for 10 years starting at age 29. So during those 10 years of loan payments he only gets $50k. That's $500k for the first 10 years. Now back to $100k for age 39-70. That's $3,100,000. Total $3,600,000. More than a nurse even when you assume one of the lowest physician salaries and slap them with a very high malpractice.