Microsoft hails AI as a money-saver while cutting jobs