I am not aware that these 2 reagents are antagonistic but they do serve different functions. NH4 alleviates the problem of primer to template mismatches by destabilising weak hydrogen bonds that form during a mismatch but magnesium is both a divalent ion so has a large effect on the annealing temperature of primer annealing and is also essential as a cofactor for polymerases so is essential in pcr. Using both reagents together makes the pcr more stable with respect to both annealing temperature and magnesium concentrations