He promised total victory for Israel, but standing next to Donald Trump at the White House on Monday, it was Benjamin Netanyahu who looked defeated. Israel's prime minister was saying all the right things about the peace deal he had just agreed to, but he seemed deflated, his voice hoarse and his energy dimmed, as he praised Trump as 'the greatest friend Israel has ever had in the White House'. It's a friendship that could cost him his government.

Netanyahu's far-right allies have threatened to leave – and possibly collapse – his government if he makes too many concessions in ending the war. Coalition partners like Bezalel Smotrich and Itamar Ben-Gvir have made little secret of their desire to annex Gaza, drive out Palestinians, and re-establish Jewish settlements there. They – and Netanyahu – have been implacably opposed to any role for the Palestinian Authority in Gaza, and any pathway to a Palestinian State. The deal Netanyahu has now agreed to outlines both, though with heavy caveats.

Trump knows that by pushing the Israeli prime minister into this deal, he is asking him to risk his government. In return, he is dangling the prospect of a historic legacy – a new, more peaceful future for the region, and new ties between Israel and its Arab neighbours.

There were signs, even before Netanyahu left for Washington, that he knew this choice was coming. Israel's president, Isaac Herzog, told an Israeli radio station that he was considering pardoning Netanyahu in the corruption cases he is currently facing in court.

But the political exit being offered to him in this moment – a regional legacy in return for giving up his government, and possibly his political career – does not seem to have entirely won him over. His first response to his countrymen today has been to publicly emphasize that he did not, in fact, agree to a Palestinian state. He stated, 'Absolutely not. It's not even written in the agreement,' in response to a question on camera.

The potential continuation of the war was something he emphasized in that uncomfortable press conference in Washington, underlining – with Trump's backing – that Israel would have free rein to 'finish the job' if Hamas failed to deliver on its side of the deal. Seen in that light, this uncomfortable moment could be the price of continuing American support for his war.

Netanyahu is known as a master of political maneuvers, threading a path between political roadblocks to buy time. He has shifted position through previous rounds of negotiations, and has ridden through previous ceasefire deals, only to back out when a permanent end to the war is up for discussion. But it is hard to maintain that uncompromising image of 'total victory' when you have publicly conceded to the very things you have spent a career preventing.

For the first time since the war began, it seems that the consequences of avoiding this deal were worse than the consequences of agreeing to it. If Trump really did force him to choose between his ally in Washington and his allies at home, why didn't Joe Biden do the same when a similar deal was on the table nine months ago – and at least 20,000 more Gazans were still alive?