I think it would be more entertaining, as well as good training, to use the naval Bushmaster II gun (30-40mm) in a semi-automatic mode, as a sniper rifle to turn their engine, through their hull, into scrap metal.
If we sink their gunboats, we will be required by the Law of the Sea to rescue and care for survivors, and we will get whined at by the usual suspects for it and any Iranians killed. But if we disable their gunboats, the Iranians will have to tow them to shore, and may or may not be able to fix them, costing them money and repair time in their maintenance dock.
I think most of those boats, from the pics Ive seen, have outboards. Gonna be difficult to hit at speed on the ocean.
Not dissing the marksmanship of our crews, just making an observation.