Iran can’t win a war with Israel. You can bet they have submarines in the area ready to strike.
Iran can absolutely close the Straight. The moment that happens, Iran has won the war against Israel and the West.