In the subgroup analysis, for the replicable subgroups in the discovery cohort, the analysis revealed that HMGCR‐mediated LDL was negatively associated with rectal cancer (OR = 0.61, 95% CI: 0.46–0.80, p < 0.01) and hepatocellular carcinoma (OR = 0.21, 95% CI: 0.08–0.59, p < 0.01). Here, HMGCR is linked to rectal cancer.