https://en.wikipedia.org/wiki/Internalized_racism
It's a bit different from having prejudice against a "different" group, but related.