Walmart and other retailers are fighting for bargain-hunting, inflation-weary customers. Here's how