Actually, that's pretty much what we do.
If the goods arrive from the supplier as a whole pallet of a single product, every item on the pallet will have the same expiry date, and you track each pallet separately.
If the goods arrive on a pallet with a variety of products on it, you split it up by product then do exactly the same thing.
The warehouse management system knows where each pallet is, and what its expiry date is. If a pallet has expired, workers picking items are sent to to non-expired pallets instead, and someone working on 'purge' is sent to remove the expired goods for donation/recycling/discarding as appropriate.
You need a system like this if you want any chance of selling things like bread, because gaining or losing one or two days of product life makes the difference between a customer who'll shop again and one who won't.
They can, of course, print any expiry date on it they like. But they're also pretty motivated not to poison their customers, which is widely seen as bad business practice :)
In our case we do carry out random spot checks on inbound goods, but that's mainly checking for things like bruising on fresh fruit and vegetables.
The defence that "this isn't technologically possible" isn't at all a defence. The _most_ charitable interpretation would be that this is Amazon stress-testing how well they can handle co-mingling of various product lines... but that's still not great if they don't pull the experiment immediately after realizing they can't.
With multiple supplier deliveries that result in combined stock with multiple expiration dates, how do you ensure expired food isn't delivered?
Because I assume a warehouse doesn't keep a separate shelf spot for each separate delivery of a unique expiration date?
And also, the expiration dates are printed on products in places that can be hard to find and hard to read. (Every time I buy bacon or greens I spent sixty seconds trying to find where the hell the date is on the plastic.)
It's also generally not cost-effective on low-margin food items to print out and scan a unique label for each item that would allow the expiration date to be machine-readable.
So I've always just assumed new deliveries try to be put in a warehouse bin behind/under existing items, and workers try to check visually for expired items, but that neither of those will ever be perfect.
So what's the properly designed warehouse management system that solves for this?