That’s the critical question, isn’t it?
Pearl Harbor gave Roosevelt the grounds to go to war, ably assisted by Hitler’s idiotic decision to declare war on the US which then enabled Roosevelt to go to war against Germany, which was the desired course of Roosevelt, Churchill and American and British policy and planning to secure their various national interests.
Japan never counted for all that much in the grand strategic planning of the US or Britain, as demonstrated by America never devoting more than about 15% of its war effort to the war against Japan.
Without Pearl Harbor American popular sentiment was unlikely to favour joining another European war and Hitler was unlikely to have declared war on the US, so that the US might have been kept out of the war at a fully committed level (ignoring Atlantic convoy escorts and Lend Lease which were a long way short of putting American troops on the ground)
A Japanese attack on the USSR might have avoided the so-called Pacific War (anyone noticed the contradiction between ‘pacific’ and ‘war’), but at the same time it would have allowed the Allies to divert to the war against Germany all the resources devoted to the war against Japan, which would have hastened Germany’s defeat.
But the big question which remains is: Would America have gone to war?