I would say at least answering duplicates should not be awarded, as suggested in the comment "or probably we disable the reputation of answers in case the question is closed as duplicate." by Temani Afif.
The reputation should be retracted only for answers which are older than the question which is used in the dupe closing, to prevent unexpected reputation change caused by "good old questions with valuable answers which get closed as duplicates of newer ones" (as commented by Martin Backasch).
I think users often know (or suspect) that the question they are answering is likely to be a duplicate. Removing part of the reward could help.