Physician lifetime earnings counting for delay, and debt… normal investment, etc: 8.5-10m. Software engineer median is much lower. About 6.5m. Specialist and high end varies greatly. Median doctor is earning 2x a SWE (130k vs 250k).
People on HN vastly overestimate SWE pay as an industry, biased by FAANG as we are :).