It doesn't fully offset it. Avoiding debt by not investing leads to lower future growth prospects, resulting in opportunity loss. Debt is contractual and can be restructured.
Debt isn’t being used to invest. It’s being used to fund current operations. Otherwise, yes, using debt to finance investment is a good thing. That isn’t what’s happening at Federal level.