The US Navy has more heavy aircraft carrier groups than the rest of world combined. The US has 11 out of 22. It also has the world's largest and most advanced air force. Old US Army equipment is working wonders for Ukraine against Russia, the supposed next best military.
Not to mention the US has a massive arsenal of working ICBMs and SLBMs.
I'm sorry, but nobody stands a snowballs chance in hell against the US military.
Regarding Iraq and Afghanistan, nation building and occupying are two different things. Kind of like ruling verses obtaining power are different.
ETA: Think about that during presidential elections.
What's also mind boggling is the USAF F-15 has zero combat losses and is the OLD air superiority fighter. The USAF can start operating anywhere in the world with a force larger than most other air forces in < 72 hours.