Even try below array formula (Shift+Ctrl+Enter)
=IF(AND(COUNTIF(A2:F2,A3:F3)),"X","")