Need you perspective on this

History is usually discussed in black and white, in terms of heroes and villains. But while reading some material, something struck me and threw me into an unending dilemma. So, I need some thoughts on this.

What do you think is the better option when a kingdom is on the brink of invasion? To fight for sovereignty and protect the nation's honor? Even if the war is lost, it could inspire future generations to fight for freedom. But it also means a lot of bloodshed, even the destruction of generations in the worst-case scenario. The other option is to accept the sovereignty of the invader and make a treaty with them. This helps preserve lives and save resources. But it can be seen as a sign of weakness and bring shame to the nation. Also, there's a chance of the treaty's dissolution, as conflicts may arise in the future.