Medical school might be one of the only degrees where you can take on an absurd amount of debt and still have a real path to paying it back.
Graduate with 250k-$400k in debt.
Make 60k-$75k/year during residency for 3-7 years.
Debt grows or barely moves during that time.
Then become an attending and jump to 250k-$500k+ depending on specialty.