CEOs are pushing workers to embrace AI. At the same time, some are citing the technology as a reason for layoffs.