You don't have to ignore these things. You can acknowledge that they are real and affect you personally, but keep your identity and opinions separate from that. It's the difference between "immigrants tend to have a hard time" vs "white people are trash", or giving preferential treatment to your fellow countryman at work because "it's us against the world".