Why not `return np.any(attr1 != attr2)`?