I don’t understand how this connects to racism.
Aka, Charging X more is equivalent to giving everyone !X a discount while excluding X from the standard discount.
And again, discrimination is not the point, the point was discounts is not a way to get around charging X more. If a state can’t charge a fine for doing X the also can’t give a discount for not doing X.