Made AgentComparisonImpl more robust by ensuring that it only considers
concepts with the same label.