Amazon and Walmart could be great stocks to weather an economic slowdown — except one is trading at a premium while the other is at a discount.