Metformin is usually the first medicine they put type 2 diabetics on, male and female.
If genetic males can take metformin, I can't see why you taking T would make any difference.
I am diabetic and take metformin and insulin, I've been diabetic for 45 years.