The average salary for a cardiologist is $308,000/yr. The average salary for a software engineer is $58,000/yr.
The cardiologist makes six times as much money. Even with a 12 year head start the programmer comes out behind. Medical school debt can be paid off in 2-5 years. In addition, the cardiologist can keep practicing into her 60s whereas a programmer should plan on changing careers in his 40s.