"It's a pretty common criticism of GDP."
...with no more veracity than your hypothetical. You don't understand what GDP measures. You've allowed yourself to believe that the economists involved are naive. You are correct, however, that this sort of bad thinking is common. Very common.