I usually pick the older one instead, because I'll feel sorry if it ended up wasted because everyone pick the newer one.
The store has full control over their algorithm for avoiding waste, and full control over what they put onto the shelf. They have all the tools for solving the problem, even in the face of some shoppers going for the newest date.