Hindsight is 2020. This isn't rewriting history but learning from it so we don't commit the same crimes and avoid the evils of the past.
We needed to respond, but we also needed to have avoided evil acts, and attacking innocents is one of the worst crimes. If we instead attacked a military compound, the blood of the innocents would be on the hands of the Japanese military because they put them in harm's way.