Companies cutting jobs as investments shift toward AI