Even the Japanese military knew that at the time. https://en.wikipedia.org/wiki/Attack_on_Pearl_Harbor#Strateg...:
Admiral Hara Tadaichi summed up the Japanese result by saying, "We won a great tactical victory at Pearl Harbor and thereby lost the war."
> In the first six to twelve months of a war with the United States and Great Britain I will run wild and win victory upon victory. But then, if the war continues after that, I have no expectation of success.
Isoruku Yamamoto, commander-in-chief of the Japanese Navy.
Historians are arguing that in a industrialized conflict, where the United States was committed to war, Japan had no shot at winning. And to some degree that's true. But it depended on political factors that were no means set in stone.
But was America truly that dedicated to war with Japan? Turns out yes - but it's not hard to see a world where Japan wasn't quite a closely allied to Germany and/or Midway had gone the other way, or after millions where dead in the home island where that commitment would be tested.
Or conversely - as Hitler hoped - Japan would hold off America just long enough for the Russians to be finished off by the Germans in the East and Britain would finally come to the table. In a "Germany First" Strategy, America could not have taken the offensive in 1942 in that scenario.
But it's also reflective of the dehumanization that Japan's leadership as - the West was soft, just as the Russians were soft, and Japan's greater fighting spirit would carry the day.
Pearl Harbor didn't predetermine history.