The operator returns an array of entities, so this will still fail.

I'm not sure if you could create an entity, import the data, then compare them or not, but otherwise just compare a few fields with their getters from the entities.