No, this comparison is bad, it is based on internal unique_id which is wrong here, what if we have to identical copies then the unique_id will be different. That is not a way to do comparison.