I agree with the author of this article. It all comes down to the price of the product. All the improvements in infrastructure, structural changes, and better services won’t do Walmart any good if it doesn’t have better, or at least similar prices as Amazon. I know that is easier said than done, but it’s absolutely necessary and I think that making competitive prices should be the priority on the leadership's to-do list.
https://www.forbes.com/sites/andriacheng/2018/11/09/amazon-holiday-ecommerce-walmart-target-kroger-grocery-home-depot/#7c153c552521