Its worked before (see 1980s https://www.strausscenter.org/strait-of-hormuz-tanker-war/), and it'll probably work again. Especially as Iran has different values on loss.
One of the lessons learned:The oil market is likely to adapt to disruption in the Strait of Hormuz. Initially, the Tanker War led to a 25 percent drop in commercial shipping and a sharp rise in the price of crude oil. But the Tanker War did not significantly disrupt oil shipments. In fact, Iran lowered the price of oil to offset higher insurance premiums on shipments, and the real global oil price steadily declined during the 1980s. Even at the its most intense point, the Tanker War failed to disrupt more than two percent of ships passing through the Persian Gulf.[x]
This seems relevant to the global stock/oil market overreaction.