I think we should not blame only UK government for such situation to be. Those who were studying for years, why didnt they make a little research while studying, where they are going to work later? During years of studying, students must have had practice. They should have noticed that something is wrong, not as they were promised with job sector. They could have taken a hard decision to drop studying and choose other profession. Instead they blindly continued and now demand jobs. Those doctors can always go abroad. I am sure they will be welcomed and there are many countries that need professional doctors.
Maybe I have been attending medical school for course for four years. Then I discovered that there are no jobs for me after graduation. It will not be easy to drop out of medical school to pursue another field. Do you know that some of these students took loans to finance their education? Many of these doctors would simply move out of the country to where they are needed after graduation.
The UK don't lack jobs for doctors. The problem is that the pay is poor compared to other countries. This is why the government prefer to hire foreign workers who are always willing to accept low salaries under poor working conditions. While UK-trained doctors prefer to move to other countries that offer better packages.