Term:

In-group/out-group dynamics

Definition:

The social psychology phenomenon where individuals categorize others into in-groups (those they identify with) and out-groups (those they do not), often leading to favoritism and bias.