We used to have KMart and I shopped there more than at Walmart.
If I can get what I need at Safeway, I’ll pay a higher price to avoid Walmart.
For what groceries I buy, HEB is just a little cheaper on just a few items. But Walmart doesn’t even carry as good a variety for what I like.
Safeway always seemed more expensive to me so I shopped at Albertsons when I lived in California. Walmart that had a grocery section wasn’t allowed in my area, the people voted them out.