I'd go further. Discrimination against some people is axiomatically part of having a nation and a border. There are no nations, to my knowledge, that permit every person residing within their borders to vote and permit any person who wishes to reside in their borders entry.
The assumption of discrimination is therefore baked in to every national project -- there are people who wish to participate in the nation but are barred from doing so. It's uncomfortable for many people to consider this, because it runs counter to the idea that their nations are welcoming places, but it's important to remember this discrimination occurs (even if you think it's a good idea.)
some people only consider their in-groups as worthy of having rights.
others consider all human beings as worthy of having rights.
you see that schism in play everyday almost everywhere. i fear it is not a resolvable tension (without some kind of mass severe brainwashing). it is a core beliefs kind of thing.