The two deals you mention are not at all comparable.
Ukraine's deal was vague promises with vague consequences, which of course materialized into zero ability to stop a land invasion.
The Iranian deal before its destruction was very much concerned with safeguarding against any attempt to "potentially circumvent" and gave auditors alot of freedom to investigate without obstruction.
Your partisan posting in regards to the notion of the war being pointless indicate that you're coming more from a place of emotion than logic. I can empathize, but strongly caution that its important we discuss the facts of arguments rather than gesturing that all but you fail to see the light.