Such an affinity is not "natural" because no one is born with any sort of innate ability to distinguish among nationalities, much less feel any affinity towards certain nationalities.
Any such distinctions and feelings are taught through indoctrination such as nationalistic rituals, media, and the attitudes of those around you.
A nationality is a legal fiction which changes absolutely nothing about who a person really is or what they do.
Nationalism and group affiliation have been the causes of some of the worst atrocities in history, so we should be very wary of encouraging either.
Regardless of their nationality, I personally feel much more affinity with someone who is helping others over one who is hurting others.
You can iteratively, conservatively try to approach an equilibrium where borders and divisions no longer matter and all of humanity joins together in enlightenment. That seems to be the general direction we're going and it's a good thing. What you can't do is unilaterally make a cooperative system out of a competitive one. If you go all at once by yourself you just get killed.
Nationality is a big (and in some cases literal) Chesterton's Fence. It is somewhat arbitrary, but that doesn't make it meaningless.
* people you love, care about, or otherwise know socially
* groups that are oppressed along some axis
* all of humanity
The solution to this is to fix the tax code, not retreat further into nationalism.