Alternative explanation: people treat their ingroup well, and their outgroup badly.
In America, Malcolm X is mostly perceived as black, therefore outgroup (from the perspective of the white majority). During Hajj, Malcolm X is mostly perceived as a Muslim, therefore ingroup.
A relevant comparison would be how Muslims treat their outgroup.
Alternative explanation: people treat their ingroup well, and their outgroup badly.
In America, Malcolm X is mostly perceived as black, therefore outgroup (from the perspective of the white majority). During Hajj, Malcolm X is mostly perceived as a Muslim, therefore ingroup.
A relevant comparison would be how Muslims treat their outgroup.