Compare values instead of pointers in Inventory::operator==