Its not as simple as you stated.
Basically its Pakistan they both want to hit, all the regional destruction you see is just auxiliary of the main operation.
Think again, why would US invade Afghanistan and than try to erase Pashtoon race from Afghanistan, and fill it with Tajiks/Uzbeks/Indians! In process spend trillions!
All this effort was not for Afghanistan, and invasion of Pakistan's northern areas by well equipped army of terrorists is an evidence of what is US's eventual plan.
Of their loss, they are upset too. Combine US and Indians would continue attacking Pakistan, with their evil plans, this will only stop, when all kind of transit to Afghanistan is blocked by Pak govt.