https://www.cnbc.com/2023/01/13/matt-yglesias-got-confused-a...
1. domestically imported goods can have imported inputs.
2. reduced competition from the external good means the internal ones will be worse.
> It should be totally obvious and intuitive that if the same good is consumed domestically, producing it domestically rather than importing it will increase GDP, all other externalities and second-order impacts aside.
There's no situation where those can be put aside, and since GDP is an artificial formula you shouldn't Goodhart it like that.
The moon base example I think makes the argument very clearly. If you have an economy which produces nothing then it has a GDP of 0. If the increase imports for whatever reason, their GDP is still 0, which means that imports doesn't subtract from GDP, otherwise their GDP would be negative which is nonsensical.
But all this is sort of beside the point because arguments from accounting identities are almost always nonsense.
It's technically true that imports don't decrease GDP, but that's only true if there's no substitution effects. But for most goods substitution effect does exist, and therefore we should expect a GDP drop from imports.