The point is that we didn’t have to kill that many Japanese to gain total surrender and we would have to kill that many Muslims. Not to mention that no one is going to loan us $10 trillion dollars to do it.
The Japanese killed many more Americans than the terrorists and they would have continued had not the US occupied. Same with Germany
Iraq is small potatoes and easy in comparison. But you have to have a presence to do the job.