In practice, nations prioritize their own citizens, in the same way you will prioritize your family. Do you abandon taking care of your family because it would be "more fair," to take care of someone on the other side of the planet?
Your countrymen should have aligned values, cultures, goals, missions, etc that prioritizes them. That's the fabric of society.