Added durability checks to areItemsIdentical.