A shallow compare is more expensive than no comparison.
It can add up depending on how big is the object and how frequent it is updated.
Which is what Dan's point is - as the developer, you know which parts of your application would benefit from such an optimisation. So don't spray it everywhere.