Herein lies the path to coming home to a cart filled with very-cheap-cause-it-expires-tomorrow produce and no tooth paste because it didn't make the cut under some top dollars limit you introduced to fix another optimization loophole.
1. Everyone's "algorithm" is different. Even if you could bake every possible filter into your eGrocery product, can you imagine the UX nightmare?
2. The "that I like the most" is a tough thing to quantify. Who is "I"? Me? My wife? My kids? My mom who's coming to visit this weekend? What do I like? Specific brands? Things I've bought before? From that store, or a different one? Things I might like because they share characteristics?
The downside, for the vendor, is that I'd also wind up scripting price-searching at multiple local grocery stores for equivalent items. If I can just curbside pick up what I need at both stores, they're literally next-door to each other.
It is difficult to express, "Please give me the cereal that I like the most that is under $X/lb. If there is an exceptional deal, buy more." without an API or scripting.