Earlier quoted context omitted.
The buyer in a grocery store can't negotiate; the store just sets the price and the buyer's only choice is to take it or leave it. Under the conditions described, the product is still worth it to the buyer who the store is charging the higher price (the one the store knows has more income and so can afford to pay more), at the higher price--there's just less consumer surplus. So the buyer still buys the product. But…
The store manager has a lot of flexibility, and some of the staff are also empowered to take care of things. If you feel you are being overcharged, see the manager. If you're nice to them, you can negotiate. Remind him how many years you've been a loyal customer. Being polite and friendly works, being a jerk does not. The ultimate negotiating tactic is to explain your position politely to the store manager, and walk…
Under the scenario that the Maryland law is outlawing, the richer customer who is being charged the higher price by the grocery store still finds the product to be worth it to them at the higher price. And since their time has value, and they're just grocery shopping, and they're rich and not trying to pinch pennies, they'll just buy the thing at the price the store is asking. There will be less consumer surplus for them, as I said, than there would be if the store were charging them the same price as the average middle class person--but it's highly doubtful that it will be worth their time to try to extract that extra consumer surplus from the store. That's why stores want to price discriminate in the first place--because they know the richer customers won't bother trying to haggle over price.