Example:
Japan and South Korea have their differences, they have some issues that they cannot agree on (for a long time) there are lawsuits involved, and passive aggressive actions, as well as banter. However, for bigger issues, they can absolutely cooperate with one another.
South Korea and Japan need to depend on each other to stand up to aggression by China, and North Korea, and even Russia.