In what way?
We didn’t leave the Nazis in power even if they may have spared the remaining Jews.
Why would they leave Hamas in power just to save a few hostages?
You asked “In what way?”
I’m agreeing with you. We had the will to utterly destroy the governments of Japan and Germany even though both held hostages and Jewish prisoners. We took the long view that the immediate possible loss of those lives was less important than completely destroying the old war-like regimes in both countries for the long-term benefit to mankind.
Today’s deal foisted on the Israelis by FJB lacks that long-term vision. It smacks of nothing but opportunism and an upcoming election ploy.