Moreover this study, plus others, have suggested a strong relation on IQ and breastfeeding (this study 8 IQ points, one cited by 23-and-me is 7 points per copy of a certain gene 0-14 points).
From a 2017 study:
> RESULTS: Before matching, breastfeeding was associated with better development on almost every outcome. After matching and adjustment for multiple testing, only 1 of the 13 outcomes remained statistically significant: children’s hyperactivity (difference score, –0.84; 95% confidence interval, –1.33 to –0.35) at age 3 years for children who were breastfed for at least 6 months. No statistically significant differences were observed postmatching on any outcome at age 5 years.
It is extremely difficult to perform good studies about breastfeeding in the U.S., because breastfeeding rates are highly correlated with other factors. For example over 90% of babies in California are ever breastfed. That figure is around 60% in West Virginia, Louisiana, and Mississippi. Breast feeding rates also vary dramatically by race (black mothers are far less likely to breastfeed). Breastfeeding rates are also much lower among younger mothers and single mothers. So it's very easy to design a study that shows nothing more than that kids of wealthier, white married couples tend to be healthier.
See my other response.