Also keep in mind it's much more egalitarian. In law yes you can eventually make partner at a white shoe firm and make millions (and make FAANG money at a Xth-year associate) but the competition is staggeringly intense.
Let's say I'm 18, intelligent and ambitious, I live in the USA, and I want the quickest path to making $500k per year and my choices are law, medicine, and computer science.
I sincerely hope that for everyone on HN, the answer is a no-brainer.