The replacement of a proton with deuterium is done to study the isotope effect in a chemical reaction. They study the replacement of a proton with some functional group, and then replace deuterium and compare the activation energies of the reactions.