Just because it may have been a driver in WW2 doesn’t make patriotism beneficial. Or mean that we should embrace the concept or practice today.
Would you say the patriotism of the German or Italian soldiers was beneficial in WW2? Or the patriotism that drove Argentina to attempt to take the Falklands?
Again, patriotism is a love and devotion to an abstract political unit, most often ignoring the complexity and value of the humans residing within that political unit. It is no more necessary to combat or prevent injustice than love and devotion to religious dogma is to prevent or combat unethical behaviour. In fact, it is often the driver of injustice, because people can be convinced to do truly horrific things in the “name of their nation” (which often symbolises an ethnic affinity and/or political ideology). It has been used to justify all manner of horrific undertakings, often against people residing in the political unit that “patriots” deem not actually “belonging” to the political unit or simply not being sufficiently “patriotic”. See the “they’re not real Americans or Brits” nonsense with Jewish people in the US and UK, or with Muslims (or anyone looking Middle Eastern), especially after 9/11 (or countless other examples throughout our history, especially when it came to Indian people we brought to the UK).
Just because patriotism was used as a driver in the past doesn’t mean it should be today, especially after we have learned it is a dangerous concept and practice which has actually caused far more suffering, death, and destruction than it has ever prevented or remedied.
My comments are on what we should do moving forward, knowing what we know now. And anyone that has a passing understanding of history should know patriotism is a destructive concept and practice (which enters the realm of ideology), even for those supposedly on the “good” side.
It is a dogma, like any other.