Implement name comparison for any name.