Actually, not at all. It's just a myth from naive tech workers.
Googlers might get 200k but doctors routinely break 400k. Doctors are quite ahead even when you factor in 100k in RSU (which not everybody gets and past stock performance is not an indicator of future performance).
Noting it's H1B data so 10-20% below local salaries. Plus doctors can work anywhere in the country, not just in the city where there is google and facebook.
All the high paying doctors are usually specialists in some hard to break into specialty. Your average family doctor is probably making somewhere in the $200k while they bust their asses paying of $300k in student loans.
If you can land a FAANG job, your total comp (after education costs) will outstrip all but the highest paid physicians.
If you can land a FAANG job, your total comp (after education costs) will outstrip all but the highest paid physicians.