As nouns,
congenital anomaly is a hypernym of
congenital heart defect; that is, congenital anomaly is a
word with a broader meaning than congenital heart defect:
congenital heart defect: a birth defect involving the heart
congenital anomaly: a defect that is present at birth