The problem is not medical school spots, it's residency spots. Having medical school graduates is useless if they can't get licensed or board certified.
How is that a problem? About 130 medical schools graduate on average 100 MDs every year, that is 13,000. Available residency spots are near 29,000. so, the rest of the spots are filled by FMGs, foreign medical graduates.