The US military is prosecuting the war just fine, US losses of materiel and personnel have been minimal (not zero, but close enough). China's takeaway from this is not going to be that the US military is incompetent.
The fundamental problem is that the declared objectives of regime change and securing control of the Strait of Hormuz cannot be achieved through air power alone. And this is the fault of the president, not the military.
What?
How many is the right number of personnel and materiel to lose for this war that isn't war and seems to have been either purchased for a few hundred million by political bribes or is just a distraction from the administrations involvement in a monstrous child sex ring? Also didn't we already win this war last year, last month, and last week? It is really easy to wave away our fellow dead citizens (and Iranians, including a school full of children!) from an internet comment form but damn, real people are dead here and it's an actual tragedy.
For me, zero deaths seems like the right answer for these objectives and anything else is egregious abuse of power.
I'd love it if everyone stopped being happy with people lying to them. When you catch people lying to you, be angry and stop trusting them!
Achieving the declared objective falls directly within the category of "prosecuting the war", and "the US" certainly includes the Commander in Chief.