That sounds dystopic and I'm not sure it'd even be legal where I live.

Here they simply have a + button so you can set the amount of the item. No need to scan all of them.

The problem with the + button, is a user has two yoghurts, so scans and hits the + as they're both $2. The problem is that one was blueberry and once was strawberry.

Forcing users to scan everything fixes that but at least.

Making the users take longer isn't a concern of the shop.

But those items aren’t identical and should be scanned separately.