Yes it was a BIG mistake. The USA handled them while maintaining the Europe first strategy and still almost wiped them off the planet
Two things, their aircraft lacked armor protection and we also broke the IJN code( their “enigma”). Midway was a miracle we should gave lost that battle according to all the computer simulations of the battle.