Specialist medical training programs should retain some flexibility to help trainee doctors make the right career choices, according to a study.