There is a difference, basically the entire world hates the Iranian regime and wants them gone, USA bombing the Iranian regime wont get that much pushback from the world even if the war was started in an underhanded way.
It is entirely different if USA starts attacking NATO allies such as Denmark which isn't a threat or problem to anyone, that is not something anybody would expect and it would ruin American diplomacy completely.