I recommend an article in the Business Section of the NYT called
"Study Shows ‘Invisible’ Burden of Family Doctors." The piece reports that less than ten percent of medical school graduates choose primary care specialties. Note too that, generally, the lesser the compensation, the less competitive the residency. The converse is true too.