Override equality and hashCode functions for ClientDevice.