A pair of behemoths in the retail space, both Amazon (NASDAQ: AMZN) and Walmart (NYSE: WMT) have been strong winners in 2024.