No, those are both rational actions in this case. Iran getting nukes is less dangerous than only Israels current nukes. If both Iran and Israel had nukes, the region might have a chance at peace.