To check for duplicates, compare data names instead of data objects