Location based pricing is not new, and AI in this case is likely just a regular ass probability model. This isn't new at all; look how much a cravings box from taco bell costs in a downtown near you and then in a ghetto near you. In my city, it's more than a 100% difference.
It's no surprise that people in nicer areas have more money and those areas cost more to do business in. It's also no surprise the inverse is true. It's even less surprising a public company is doing everything in their power to maximize profit; they have a legal obligation to do so and it funds your 401k.
McDonald's isn't the super villain here, change the legal obligations or incentives of private companies to be more socially focused and minimize performance based comp for execs.