'It's the art of the possible': How Walmart and Target are harnessing AI to rocket past the competition