Certainly no one is debating the decisive nature of Midway. And the Japanese really had no chance to win a war against the US. Economically the Japanese were at a huge disadvantage. consider only about 15 % or so of US military output went to the Pacific.
The US might have lost the war by being weak, losing its nerve, or having the american press or people turn on the conflict. Thank goodness previous american generations wern’t as comfortable as we currently are.
But really wars are not waged based on logic of having a chance, even those who may know they have no chance still will sometimes role the dice. You never know what might happen and sometimes you just have to fight.
Poland had no chance against Hitler but they refused to give in to his demands and they fought.
Czechoslovakia probably had a chance against Hitler but were sold out and did not fight.
The Confederacy had little chance of really beating the Union. Should have quit after Gettysburg and Vicksburg, should have quit after the fall of Atlanta and the reelection of Lincoln. But by then it was too late. And when the South attempted a peace conference in early 1865, Lincoln and his generals told them to pack sand.
The Romans at their height lost wars. The people beating them probably had no chance to win but win they did.
The continentals had little chance of really beating the British. - but they did
Iraq had little chance of beating the US. - in either war but fight both of them they did.
and on and on throughout history.
And once your in the war its real hard to make peace. The Japanese would never had looked for peace after one defeat. Heck it took them getting nuked twice and they still debated fighting on and even had a junior officer’s revolt to keep the war going.