The strengths of our study include our use of modern causal inference methods combined with machine learning to emulate trial inferences using high-quality clinical data from all pregnant women with GDM treated with glyburide or insulin over a 10-year period in an integrated health care delivery system with centralized GDM management. Here, INS is linked to gestational diabetes.