(And what loss)
That's how war works now. It's always been true to some extent but conflict is just getting more and more asymmetrical with no obvious upper limit.
At some point the Houthi in a cave with a five hundred dollar DJI drone and rage in his heart is king in that world: the only way to lose is to care about something that hasn't already been taken from you. You'll never kill all of them. Not with a nuclear bomb.
Whereas the Houthis are a sufficient non-issue that shipping traffic treats them as an insurance cost, the US Navy's biggest problem is they'd really like laser rather then missile to cut that drone out of the sky (which is to say: they enjoyed Iranian backing meaning they were smuggled surprisingly capable antiship missiles, and they won't be getting many more of those now).
What you might do better to note is both of those conflicts consisted of the US invading someone else's home soil to effect change and being outlasted in terms of public interest - a public who at home were living peaceful, first world lifestyles.
Everyones little civil war fantasy is when the fight is happening on your home turf to start with.
I don't have any sort of civil war fantasy, but I think that holding out against a military deployment in-country until it became socially and politically untenable would be pretty reasonable.
There's many dictatorships which are considerably older then that, yet weapons are easily available or common - Iraqis didn't lack for small arms during Saddam's rule.
And it got its ass kicked in Afghanistan. Trillions of dollars and countless lives later and a bunch of Pashtun tribesmen with AK-47s and RPG-7s have the country back, and a bunch of our materiel for our trouble.
Because the only thing on the planet more dangerous than a United States Special Forces operator is a man with nothing to lose.