Based on microbiome research, it will likely vary from person to person due to each person's unique gut microbiome. So the best way to figure it out for yourself would be to try an elimination diet. You'd have to be very particular, and keep a detailed food & symptom diary.