Walmart has the edge in delivery speed for daily essentials, while Amazon has the larger selection. Both giants are borrowing ideas from one another.