Force projection, targeted aerial strikes, intelligence gathering, and a nuclear deterrent play to the US miltary's strengths. Convincing the people who we just whacked the leaders of to like us? Not at all. The US doesn't have the political will to commit the monstrous acts required to stomp out an insurgency, and we, as the big bad empire on the global stage, can't help but inspire insurgents.
If you look at the boondoggles that the US has gotten itself into post Korea, they typically follow a pattern of "we show up, complete the key objectives in the first couple of days, and then spend years occupying territory while trying to root out an insurgency, creating new insurgents at least as fast as we neutralize them, then eventually limp away with our tail between our legs."
Lately, we've been just doing the first part. Which is the part we've been good at for ages. No need to blame AI, it's just that we aren't / haven't gotten around to doing the part we suck at.