The problem of undereducated doctors has always existed because only an already wealthy and historically advantaged few could go through the process of medical education without their family starving. After a few generations, doctors will be drawn from a much larger pool, and the ones who make it will be of higher quality.
You could either make yourself slightly wealthier now and die with all the other wealthy people with today's life expectancy, or you could live significantly longer by increasing the number of people who participate in economic and scientific development.
There might be problems in the implementation of those programs, and that's what you should focus on fixing; however, the general idea is obviously correct to any logical long term thinker.
You can't blame people if they are apprehensive about going to a doctor who comes from the lower caste, you'll always doubt his skills because he had it easier.