Amazon and Walmart are investing in AI, automation and digital systems to operate more efficiently amid inflation and cautious consumer spending. AI is becoming a core operating layer, with Amazon ...