U.S. med students train in hospitals, discouraging new doctors from choosing critical, less prestigious, jobs as primary-care physicians.