Can you not argue that the average is the same and thus the law isn’t violated?
Reality: the supermarket does it the common sense way, and never gets sued, but if they do get sued, the outcome is "you must now refund 2 cents from every SNAP transaction you ever did"