I agree. The goal of AI is to reduce payroll costs. It has nothing to do with IDEs or writing code or making "art". It's meant to allow the owning class to pay the working class less, nothing more. What it *can* do is irrelevant in the face of what it is for.
You've pretty much described the "what it is for" for a large percentage of industrial inventions. Clearly, however, the world would be worse off without many of them.
The fact that there exist things created in the pursuit of money that are of questionable benefit to society... does not, in ANY way, negate the fact that there are MANY things created via the same motivation that are a benefit to society.