Sectarianism is sometimes used, but it more often refers to hatred/discrimination between groups. Ethnocentrism is a related term of comparing all groups by one's own culture/ethnicity (usually considered the most important).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.