Duplicate elemination only works when a custom hash/equal function is implemented that is based on the members.