Treat deprecated and non-deprecated versions of keys as different for equality comparison

Forgot about it. Will update.