Where? Israel? They don’t have any oil. We have had bases in Saudi Arabia since the 80s because they were one of the more stable Middle Eastern nations and because they were extremely anti-communist which made them good allies at the time. If you want to insist we were there for oil then we were there to make sure the Soviets didn’t get their oil. We expanded our presence there during the Gulf War because they have a border with Iraq and maintained that expanded presence until 9/11, at which point it expanded further to serve as a hub for Middle Eastern operations.
Those were standard military engagements, as in two armies facing off against each other with clear strategic goals. The US had the greatest military force in the world at the time, so obviously they would win in a straight up fight. Where the US military struggled was with insurgency, and they struggled with it again in Afghanistan. When the force you are fighting is able to disappear into the forest, a lot of your advantages get neutralized. You can’t drive your tanks through the forest, for example. The ewoks obviously don’t work as a 1 to 1 comparison, but fit pretty well with popular perception of the Vietnam war.