In a sense, they're "the same" in the sense that there's no good solution, only bad ones to choose from. To choose any of them will create very difficult new problems.
The puzzle is to find the least bad solution in each case; and to be honest, the cost of waging the WOT is a significant contributor to the deficit, so you can't just say they're separate issues.
Pulling out of the WOT would be a bad thing, of course -- I don't think we can do so without seriously strengthening the hands of the Islamofascists. And we can't forget that those folks live in places that produce a lot of oil: to let them back up would probably give them influence over oil supplies in one way or another, which has its own dire economic consequences.
I don't know that there's any pleasant way out of this mess....