Good points. I would also add that it gave the US confidence. The only hope Japan ever really had was that the US would lose a few battles early on (as we did: we lost all of them) and that the US politicians and public would decide, “Hey, we can’t win this thing”.
After Midway, everyone in America was thinking, “We can win this.”
Japan’s only hope was gone.
Midway clearly showed our military we had the ability to defeat them. Confidence was the real winner for us at Midway.
I’m not sure that thought (that we’d lose so much we’d give up) was ever a reality as much a hope by the Japanese. I truly believe they read America wrong (fat, lazy, self-indulgent) just like Hitler did.
The fact that we believed Japan committed a unfair sneak attack and killed innocents meant we would never just walk away without taking a huge pound of flesh for it.
They lost when they launched the first aircraft on Dec 7th.
If the Japanese declaration of war happened on Dec 6th, things would be different. Of course the idiots in the Japanese Embassy taking all morning to decipher the coded declaration hurt, too.