These wars are more about geopolitics. Oil, resources, and currency power is just various aspects of geopolitics. The underlying motivation for these wars are holistic.
For some in Congress, Israel is also a religious issue. It is the modern crusade.
Pakistan cannot be invaded inshallah. If it was readable it would have been done by now.
That is complacency, there are many ways to destabilise, weaken, and destroy a nation. Overt solutions like conventional invasions of a decent adversary is too costly.
When it really comes to it in a major war with a powerful and technologically advanced foe, your banking system would be shut down or reset, electrical grid disabled, industries slows (or stops), internet/communications shut down/isolated, guidance systems won't work, etc the list goes on. Now your pumps and electrical equipment won't work, you will have to depend on using generators that will be less efficient and consume large amounts of fuel. Your strategic capabilities can be disabled remotely if you don't fully protect your hardware and software, which is difficult to do. The military communications would be jammed and tapped.
A electronic strike is remote and who do you retaliate against when you are not sure who the perpetrator is? Even if you do what if they don't admit to it, what do you do then?
Realistically in a real war, only China and Russia stands a chance against America. Most people don't realise the gap and the less obvious tools of war. Troops are the last item to be employed if used at all. Yes, if there is a ground invasion of Pakistan, America would be bogged down and likely lose the war but in a realistic war, remote tactics would be used. In hybrid war, you can't even have a clear cut enemy to retaliate against with your conventional forces. This will sap national resources and remove surplus from development and funds for upgrading the armed forces. There is a reason why nations don't go too out of line with America.
America and Israel disabled and destroyed Iran's nuclear centrifuges even when it was a physically isolated system. It was isolated from the internet and in physically protected facility but they still managed to embed a virus into the system that caused the centrifuges to spin out of control and destroy itself. The virus was embedded into an engineer's laptop during repairs. A war with America goes beyond just tanks, planes, and troops. There is a reason why China invested hundreds of billions into more secure communications technologies, military IC, cyber-warfare, assassins mace weapons, and spent relatively little on individual combat equipment. Most nations cannot survive the conflict level escalation, those that can survive a conventional war will have a hard time dealing with the invisible operation of cyberwarfare. They can survive but severely weakened, this can invite a series of events.
I don't mean to sound so cynical.