Qualifications should come at the end of your education, not at the start.
For what it's worth, I do agree we should train more doctors, but I think it's a complicated problem.
This happens already, today. There are dozens of reasonable questions you can raise based on this fact - but I don't think it's obvious that the failures at the end of training can majoritarily be identified by pre-training metrics.
Some countries allow any student to take the first two years of medical courses, and then impose restrictions on the following years. This seems a relatively fair system; you can imagine someone persevering over many years to attain the requisite knowledge - but this person would not have had the opportunity if there were a pre-medical school filter