To detect indicates becoming aware of a thing that had been obscure, magic formula, or concealed: to detect a flaw in reasoning. To discover is utilized with aim clauses as a synonym of find out so that you can suggest that the new data obtained is surprising to the learner: https://www.weiyi.se