is there EVER any point to code like this:

Code:
if (x != y)
    x = y;
Maybe to avoid dirtying the cache, or something like this?