Human beings are fundamentally social creatures. Consider the ritual of meeting someone for the first time. People grill each other trying to figure out what they have in common. "Oh, how do you know $PARTY_HOST?" Oh, are you from Chicago too? How about the Cubs this year, huh?"
I do agree that the modern welfare state would likely be difficult to maintain without national identity.
We used to live in paradise but then man was corrupted and if we don't repent fast enough we'll be doomed to eternal damnation.
Given that, I'll leave the topic to rest.
"Birth control? Just stop having sex when you don't want a kid."
"Carbon sequestration? Just stop being so wasteful."
I think you may wish that was the case, but the evidence for this is rather lacking.
Even the people who think they identify that way actually identify as people who identify that way and freely indulge in "othering" the people who choose a different identity basis.
Did you just put nationalism in a good light by comparing it with classism? First of all, the two are not necessarily opposed and often go together.
Also this is a false dilemma. Humans can live without a group identity or identify as living beings instead of being a "proud $skin_color $religion $nationality $gender".
It's not far-fetched to say that this could prevent a lot of social conflicts and wars. Can someone prove me wrong?