In 1941, Imperial Japan understood perfectly well that it would be stupid to pick a fight with yet another superpower. They attacked anyway because Japan had essentially no choice. Japan had and has no domestic supply of oil, which means that the US more or less cut off their blood supply by embargoing oil imports from usual sources such as Indonesia. Barring preemptive retreat and surrender, Japan had no strategic option that did not involve knocking the US Navy out of the Western and Southern Pacific.
Anyhow, if oil does switch from a commodity to a strategic resource then everyone becomes Japan!
Here’s a cat that adopted a puppy.