There is no comparison, Doctors are knowledge workers, and pilots are skilled workers. Doctors go to school for up to 20 years, work for slave wages until established in practice. Anyone with a certain level of skill and desire can be a pilot, no high school diploma, no college BS degree required, no MD like a doctor, just go to a trade school and develop a skill. Pilots unlike Doctors, CPA's and Engineers have no unique abilities that allow them to change jobs and be paid close to their last job. The job can be done by anyone with a Comm/MEL/Inst. High earnings are based upon seniority within a company's pay structure. When you can not live on a pilot’s pay, you go somewhere else where you can get better pay. I have had four non-flying jobs while waiting for a chance to get back into aviation. I have never seen a $100K in my life and I would be happy to work for that. I am still living my dream.
It would a great time for me to be 33 again with the coming experience shortage, I was at the peak of the hump of the pilots trained for Vietnam, the military trained over 15,000 pilots in 1968. There was no shortage of guys my age for the much smaller airline industry to look at in 1970's. The joke bak in 1977 when I left the Navy was "To get an interview with AAL, UAL, or DAL over age 30 you needed tow logged lunar landings"
BTW College is not an acceptable screening for limiting who can become a pilot. I know a major pilot, he was a high-school drop out. He paid $2,500 got a BS from XYZ College and bingo hired by a major. He is a great guy, and a good stick. Back to the Academy screening process to limit who can become a pilot.