Add default logic for comparing two resources.