The slight problem here is that the war was started by Netenyahu, whom US voters are unable to remove. But yes, I doubt Harris would have gone for the decapitation strike that destabilized everything.
Is Netanyahu now an official representative of the american government?
War was started by Trump, Hegseth and Netenyahu. Hegseth specifically wants wars for emotional reasons - it makes him feel good.
America has a lot of Iran hawks, especially in goverment/military circles. They got their way.
Netenyahu has been pushing the "Iran is building a nuke; they're literally a week away" line for decades.
Trump and the day drinker were the first senior US officials to take that seriously - Trump kicked that off by neutering a working and workable international agreement that capped HEU levels and allowed routine inspection and on site monitoring agreement, with more stupidity following.
Harris, and most other "traditional" (non MAGA) candidates typically follow the advice of the core military and intelligence services; it's unlikely any career politician would have jumped into open assault on either alleged drug boats or Iran.