Different goals. Carpet bombing to deny Iran access to its coast is maneouvre warfare. It’s tactical. Carpet bombing to force Kyiv to capitulate is strategic bombing. It has never worked.
If you wanted to try it with bombs, it would take continual re-dropping of hundreds of thousands of bombs every few hours to cover (1600km * 8km) to keep people out, even assuming they have 0 shelter or cover.
I think this is more an open question than “it has never worked.” Nobody has tried to area deny FPV-drone navigators. Bases on lines of sight and line channels, one could probably back out from transit paths to the places one would need to be to hit that target, and then ensure anything there is turned from psychology to biology before a critical moment. You couldn’t do this with smart munitions, and couldn’t along the entire Hormuz coast. But for critical junctures that our closest allies (minus Kuwait) need to export? The math seems feasible, if fundamentally untackled.