You think the US has shown itself as to be extremely competent in the Iran war? If you were talking about Iraq, that was completely different leadership.
The US killed almost the entire Iranian regime leadership with minimal cost. What definition of competence are you going by?
How many lives has the US lost? What has Iran lost so far in the conflict with the US and Israel (a conflict which is not over)? The propaganda attempting to spin this as setting up as a strategic defeat for the US, is almost comical.
As is, the US can stand-off and torment Iran for a very, very long time.
$31 trillion economy. $94,000 GDP per capita (nearly 3x Japan for reference). The US can spend $100 billion annually on bombing Iran for the next decade entirely without harming its economy in a meaningful way.
The US doesn't have to let off. Iran is pinned, massively eroded, and the US is only losing money. Iran has lost all of its proxies, its military is entirely broken (and fully capable of waging a guerrilla conflict), its navy is gone, its airforce is gone, its military manufacturing is substantially eroded, and Russia is boiling. The reason the US is going back and forth on peace, is for the same exact same reason it's in the US interest to bleed Russia. It's this: let's pretend we want peace, while we endlessly grind Iran down.
Not only leadership, war looked different back then. The Ukraine war made everyone throw away the classic war playbook.
At the time of the Iraq war the US was holding all the cards. It had a perfected playbook, the optimal technology, and support from the population. In the Iran war the old playbook is ineffective, the technology is too expensive to keep it up, and the popular support for a war demanded by another country isn't there.
And yes... you have the current crop of leaders who couldn't lead their way out of a wet paper bag.