Just like for lawyers, "averages" for doctors are probably deceiving (what does partner of group that has lots of junior associates billing alot more than they are paid and excess profits go to senior partners make?), and would probably need to know median, distribution curve of average incomes for various subsets of any given specialty, and correlation between different seniority status and type of practice they are in. Plus probably not adjusting average income downward for standardized 40 hour work week when making apples to oranges comparisons to average salaries in other fields.
Somehow I suspect for alot of specialities, if solo practice doctor's income is really based upon what they bill (actual services that person provides him or her self) minus their expenses, many fields salaries won't look as great as those "averages" suggest.
Plus those doctors weren't really earning money during years in medical school and residency, and lots of students loans to pay back, so there is opportunity cost of choosing pathway that requires more years of training vs. going into workforce right out of college.
OP should being thinking more about stability of job and it's defensive nature in economic downturns, vs. I'm going to get rich in this profession or that one. If you are personable and people / patients really like you, I would guess that dentistry might be more profitable (cash only business and don't have to accept insurance).
What junior associate lawyer earns vs. senior partner makes can be very, very different.