Walmart's main customer (in the US) is the American family. Things happen when you get married and have children. Life gets complicated and people have budgets. While the uninformed seem to think their keen sense of seeing into the future is spot on, there are some basic facts that don't change. Families need groceries and baby food and diapers and toothpaste - all those items that keep the family machine turning smoothly at home. Mothers and fathers will always cook dinners for their children. Socks and clothing needs to be bought. Clothes need to be washed. Hair needs to be combed.
The point is this - family life (in the US) has a cycle, a constant beat and rhythm. Shoppers come to their Walmart so they can see and feel the family goods and groceries they are buying. Many of us buy items online for the sheer convenience of it and when we do, we have the options to compare prices and services and select our merchant. But, none of us buy everything online, so we still need the store where that single mom can get in and get all her stuff in one trip, or where you can go at 11pm at night to get the baby Tylenol.
When the American consumer is offered more purchasing options, they have consistently chosen value first, then brand loyalty, then convenience. It will flex over time as more options become available, but, families will still need to keep the same home machine turning and operating, so, they will always need a faithful merchant, Walmart. This is undeniable. This is how the American family works.
Agree with you completely, @OlHHybf-1zlz. Some things are simply a part of American way of life, and Walmart is one of them.