The resident salaries that you listed are an average taken across all specialties. Family Medicine is the lowest paid specialty with 2026 PGY-1 salaries at $58,500 (representing an increase of over 15% since 2021) [2] That is simply not enough to pay the cost of living in a state like Massachusetts where the median household income is more than double that [3] and the average rent in Boston metro is almost $40,000 annually [4]. Not only can you not afford to pay down your student loan debt, you are extremely likely to accrue additional consumer debt on things like credits cards or vehicles.
My main point is that training to become a doctor carries so much financial risk that it selects against folks from poor socioeconomic backgrounds that would otherwise make great physicians. In 2018 the AAMC published a study showing that 51% of medical school matriculants were from families in the top quintile for family income [5] and if I were a betting man, I'd guess that proportion has only increased.
1. https://www.kff.org/state-health-policy-data/state-indicator...
2. https://www.inspiraadvantage.com/blog/how-much-do-medical-re...
3. https://fred.stlouisfed.org/series/MEHOINUSMAA672N
4. https://www.zillow.com/rental-manager/market-trends/boston-m...