My own doctor also told me to not eat any refined grains, noodles, white rice or bread.
After consideration I took her advice and quit those things. My A1C goes down significantly.
Before that, I already have diabetes and took 40gram of Metformin daily. It didn't work.
The real solution to diabetes is to change the diet.