You summed it up nicely.
May I add, Iraq not only didn't possess pinpoint accurate TBM's, its arsenal also amounted to no more than a minimal fraction of Iran's. Iranian ballistic missiles number in the high tens of thousands. Nor was Iraq equipped with any of the practically unassailable hardened underground missile bases, cities actually, which Iran has constructed beneath mountains. Nor did Iraq develop any equivalent to Iran's missile farms (launchers buried in the soil, hard to detect by the enemy).
Apples and oranges, verily. And yet, the so-called "SCUD hunt" conducted by the USA in 2003 was fraught with considerable difficulties, as per western sources themselves. Imagine going up against Iran with its nec plus ultra BM force. A lost cause.
And thanks for highlighting the defensive role of BM's insofar as they are the cornerstone of Iran's area denial strategy, by virtue of which the enemy's main strike arm, its air force, will be compromised since the static and bulky infrastructure an air force relies on, namely air bases, will be pounded by relentless Iranian missile strikes in case of war.