Nukes were not a response to Pearl Harbor.
The framing in general of “Japan only took military action and the US sank to attacking civilians” is wrong too. Take a look at what Japan did to the Chinese during that time period if you think they were only attacking military targets.
Japan also invaded an Alaskan island. https://prologue.blogs.archives.gov/2010/06/07/the-japanese-...
Are you saying USA cared about the Chinese? Japan had already surrendered before US nuked them