In this case-control registry study of 63,828 patients with 14 common cancer types and 37,086 controls, pathogenic variants in BRCA1 were associated with biliary tract cancer, BRCA2 was associated with esophageal cancer, and combined BRCA1/2, with gastric cancer.