My lesson from Pearl Harbor: If you are going stage a massive surprise attack on a larger, more populous, more industrialized opponent, don’t waste your time attacking the enemy forces. You need destroy the means of producing or replacing those forces - steel mills, ship yards, factories, etc.
If you can’t reach those resources, or make a significant dent in them with your sneak attack, Do Not Go To War with that enemy under any circumstance.
The USN could replace its losses at Pearl. Even if the Japs had got our carriers at Pearl Harbor, we could have replaced them. Eventually the Japanese would have lost. Once we decided to fight, there was no simply no “win” scenario left for the Japanese.
Lesson: If you can replace your losses and the enemy can’t, you win. Attack your enemies’ production and logistics.
They should have at least bombed the submarine base and the fuel depot.