After Cannae, Rome could have just bowed to social pressure and done the logical thing, just as most nations and men would do when faced with such an unrelenting series of "Ls."
They SHOULD HAVE surrendered after losing the Battle of Cannae. It was their third straight "L" fighting Hannibal's invasion, and the worse defeat yet. They sent their best two armies, and their best were annihilated in a battle the entire world still remembers as a textbook battle of annihilation. The Roman were destroyed so badly, it is still, right now in 2026, used as an example for just how thoroughly an army can be destroyed.
People inside Rome then, semi-rationally, wanted to surrender. That or flee the city entirely. They made preparations to do so—were, in fact, in the process of doing so—by the examples set by the Maiores, the descendants of the founding patrician families of Rome, who doubled the fuck down. They stopped people from fleeing and forbade any negotiations with Hannibal at all—who, by the way, wasn't as strong as they thought, as he lacked the manpower to actually take Rome by force.
This is clearly one of the great "No, fuck you" moments of world history. It seems that "No, fuck you" is an excellent crisis management tool, when employed correctly.
