Equivalence of stochastic and canonical quantization in perturbation theory