Stricter comparison for deep_eq constructors.