That was not a question of good and bad. There's no point in optimizing production if there's no demand for products. Then most businesses would go bankrupt and we would get into a huge recession until things get to a balance again, something worse than 1929
Maybe maybe not. If AI is really taking over, that means the goods are also getting cheaper. It’s too difficult to prognosticate on the impact this has on human labor and society and the economy writ large