Patients with T2DM who were on a GLP-1 RA, compared to those who were not, had a statistically significant lower risk of both gastric cancer (0.05% vs. 0.13%, p < 0.0001) and esophageal cancer (0.04% vs. 0.13%, p < 0.0001) at the seven-year mark. This evidence concerns the gene GCG and type 2 diabetes mellitus.