it’s natural for countries to sort for stronger allies, particularly in times of global uncertainty and instability. Every country at this point wish to protect their borders, resources, and security and sometimes they just might not have the resources and capacity to that alone.
That being said, I believe that every nation would most definitely put their own interests first before others. As much as alliances can be really helpful, one should not equally ignore the fact that the moment diplomacy is ignored, it can equally create division and tension too. Which is why it’s very crucial to find the balance between cooperation and dialogue as these are really what matters the most.
The worst thing about politics is the fact that it makes sense to fight with others so that you look tough and get elected again. Presidents and nominees create boogeymen out of other countries, and that is how they grow and become better on election day. If you say "we are going to get along with everyone", that is not going to get you any votes.
Humans want to hear that their misery is because of an enemy, and if it is not, then there is no reason for their misery, and they do not want to hear that. That is why we do not have political leaders of parties going around explaining to the people that, there is a finite amount of money and unless we want to live like Mormon version of 2026 and progress, we need to let capitalists do earn a lot and progress our future, and that means we can't have everyone living a good life, and you are going to have worse and worse life, there will be people starving on the streets, and there will be some people who work 70 hours a day and barely can afford rent, so that we have a poill that fixes cancer in 30 years.
Yes, it is not sounding great, but it is the price that we pay. If we lived in a socialist world, we would be stuck in 1954 and building just some apartments for free, while having no cure for anything or no mobile phones or anything that we have today. Capitalism offers suffrage for the masses, and improvement in the world at the same time. So countries can't really just be free, not from their surroundings, not from themselves, and we are going to see politicians keep on attacking other countries and nations all the time; that is not going to change.