People with credit cards shop at Walmart too, and there's a significant amount of marketing effort done to convince people to get new items they weren't planning on while they're there. Plenty of people there can be sold new things without going into a "oh, this new toy for my kid on the aisle endcap looks nice, time to put away the dozen eggs because I only have X dollars allocated for this trip" same-net-spending reaction.
(Anecdotally, my behavior is basicaly the opposite of what you describe: I got to Amazon when I already want a specific thing, and I find their browsing experience god-awful. I go to a physical store when I want to browse or shop without direction. Maybe I'll end up with a new shirt, or a book, or a video game, or a plant... maybe nothing...)
If people spend next months wages, that only temporarily increases sales.
Long term I would expect that non-Walmart credit would decrease sales, since shopper’s income remains constant but they pay more on interest so less remaining for other goods.
Amazon has much more discretionary budget to try and extract from their customers, so time on site is absolutely critical.
I'd say the two aren't even competitive at this point. Amazon will need many years to build out a robust vertically integrated grocery logistics network that reaches Walmart customers. A few Whole Foods in rich neighborhoods isn't going to cut it. On the other hand, Walmart will never figure out how to sell stuff online without losing money, and will probably kill itself trying to chase Amazon for some unknown reason.