Check if two values are deeply equivalent