Are you familiar with the medical pathway in the US? Software really isn't comparable for any but maybe the absolute most extreme developers.
1) Premed - 4 year degree + easily 1-2k+ hours spent volunteering, doing research, gaining medical work experience, obtaining LOR, shadowing, MCAT prep etc. This isn't optional if you actually want any chance of being accepted. Fail to get in and you're working with a (typically) biochem bachelors as a lab tech for $12 an hour and no upward mobility outside of grad school.
2) Medical School - another 4 years of pretty much nonstop studying outside mandated classwork and clinicals. Multiple large exams that basically dictate your entire future and whether you'll be able to match (ie. actually work as a doctor ever) along the way. A few thousand fail to match each year and invested 8 years + 250k med school + 50-100k undergrad to go back to that lab tech career I mentioned at $12/hr. Keep in mind those student loans are non-dischargable through bankruptcy.
3) Residency - 3-7 years. Family Medicine is one of the least rigorous and shortest at 3 years and averages about 10k hours of on the job during that time making less than minimum wage. Surgery is more like 80+ hours/week for much longer with 28 hour shifts standard at the start (minimum, better hope you don't have to finish any work at the end). Oh and don't fuck up because you literally have lives in your hands and face multi-million dollar lawsuits if you mess up after being awake for 20 hours straight on the job.
At the end of all of this and if you matched the most competitive specialties and busted your ass you might be able to make as much as a senior level SV software dev. Or you might be a pediatrician making 150k/yr if that appeals to you more than being wrist deep in someones bowels all day every day, or getting a 3 AM call to come do neurosurgery, or an urgent heart cath. Not feeling it tonight? Well someone is going to literally die if you aren't there within the next 30m- sleep well.