Lets not lump in nurse practitioners. I'm absolutely in favor of giving more responsibilities to NPs and paying them more than they currently are.
Data on doctor salaries is very difficult to come by publicly, however H1B salaries indicate the average pay for H1B PCPs is $200k [0]. These are the lowest paid physicians. If you look at the data, many many physicians are making much more than that - with many specialities averaging $300k+. Generally H1B workers make less than comparable native-born (even though that's illegal) so we should view this as a lower-bound.
That puts hourly pay for average PCPs lower than the top SWEs, but comparing average with average or specialty with average and you're already quickly outpacing large majority of SWEs.
From what I understand, the primary care physicians that work for a large medical company don't make much, but ones that run their own practice can make double or even triple, but then they take on enormous risk.
The front line primary care doctors and nurse practitioners dont make as much as IT people quite often.