Why are people like this? It's like somehow they've not actually lived in the real world for any of their lives.
If a product like that existed, and bloody hell would it be complicated, then there wouldn't be a best price for groceries. The fact that a product like this doesn't exist is why there can be variation in price. Otherwise there would be no point.
There are a lot of considerstions when buying stufff other than price. Some people buy only local and are willing to pay a premium. Others only buy organic. Others boycott Nestle. Others just buy what "feels" right. Some just have money to burn and literally can't be bothered by money.
Sure, having something like that could upset the balance, but not everyone will use it. And even if a lot of people would, you'd still habe to take in things like distance or Costco memberships, etc.
Also forgot to add - imagine a store having two products, one right next to the other. They're exactly the same other than one being store-brand and 50% cheaper than the other. Surely no-one would buy the other one, yet it still sells. You don't need AI to tell you store-brand is the same thing but cheaper.