Barcodes and QR codes are just a way to display data. The assumption that every one of them identifies the object is invalid. Some do, for sure in particular in retail stores - others could be serial numbers or other such info that aren't going to match with any specific database. This is also why on many non-grocery items you'll see multiple barcodes... the one that the store uses for identification, and the rest that represent other things.