Most of them, I’d say. Commitments to alliances and global organisations, for example, will override purely nationalistic factors.
Australia, for example, didn’t hesitate to dive into both world wars.
A nation may be full of pride in itself, but acknowledging that others are more powerful, or better at some things, is simple acceptance of reality.
Diplomacy is not a zero-sum game. Working with other nations can benefit all.