People often make the argument that some individual terrorist/liberation movements are "special" in that they are driven by a core ideology which is irrational and has no connection to the real world and that the only solution is to "nuke them".
Every liberation movement arises from an injustice which has the support of a broader group of people. ISIS would not be able to recruit anyone if it were just an irrational ideology. It draws from a large group of people who see some injustice. ISIS then magnifies and distorts that injustice to radicalize people to do all of the "irrational" actions.
If you look at all liberation movements, they have this same characteristic. Small conflicts gave rise to movements (here's a long list of liberation/terrorist movements https://en.wikipedia.org/wiki/... ). There are also larger movements such as the Nazis in Europe where a very large group of people were suffering economic injustice, chose a scapegoat and performed "irrational" atrocities on a large scale. The voters for Trump in the US were similar. They perceived economic injustice; Trump provided a few handy scapegoats (Mexicans, Chinese, etc.) and they made an irrational vote to elect a charlatan who promptly betrayed them.
It doesn't really matter that in each of these cases, the scapegoats were "innocent" and that there were other real causes of the injustice.
All of these movements can be countered by addressing the injustice. This will dry up the source of recruits and the popular support for the movement. Bombing only makes things worse.
However, often it will be difficult (or impossible) to address the underlying injustice. For instance, in the US, the neoliberal capitalist system which is creating economic injustice is so well entrenched that it will be extremely difficult to change. Similarly, the multiple complex injustices in the middle east are probably beyond the ability of anyone to address. That does not mean that bombing is the answer. Probably the best the US (and the West) can do is to try to remove themselves as a target by leaving the area and stop meddling in areas where we have no understanding or appreciation of the complex dynamics.