The only irrational party here appears to be Trump and Bibi. They launched a war on Iran with no clear goals and no exit strategy. It was so poorly planned that they are SHOCKED that Iran closed the strait of Hormuz. You keep pushing this radical right viewpoint that Iran would develop a nuke than immediately glass Israel. That is probably the dumbest thing you can say. Hell, North Korea has nukes and hasn't annihilated South Korea, Japan or the US.
If Iran got nukes, they would use them as a deterent. Just like North Korea, Russia and Israel. They might say they want Israel to vanish, but that doesn't mean they'd launch a first strike. But, I think it would make Israel think twice before launching sneak attacks against Iran. Plus, Iran wants their brand of Islam to survive. If they nuked Israel, they would likely get a taste of that heat in return. You can't spread the faith if you've been reduced to ashes.
Also, you can say that Iran is led by religious nut jobs....but I could easily make the same argument about the Christian Nationalists who have infected the US leadership, except their book's 2-4000 years old, depending if you include the Old Testament.