Use deepEqual when appropriate.