AI helps to increase the productivity, not replace workers. If you fire people, then the competitors who didn't fire will outcompete you simply on numbers of workers multiplied by productivity.
"AI isn't paying off in the way companies think. Layoffs driven by automation are failing to generate returns," per FORTUNE.