The effects of chemical doping and hydrostatic pressure on the resistivity of YBa₂Cu₃Oₓ and NdBa₂Cu₃Oₓ single crystals