This formula in F2 will do what you're asking:
=IFERROR(IF(MATCH(D2,A:A,0)=MATCH(E2,B:B,0),INDEX(C:C,MATCH(D2,A:A,0)),"No Match"),"Not Found")
It provides two different messages for the cases where 1) D & E don't match A & B, and 2) where no match was found for one of the search terms.