If artificial intelligence’s boost to productivity disappoints, here’s how to invest