Three years of medical school is as good as four, US study finds