This selection is not exactly the same as the selected primary vertex (rho is missing). You were right in not using "selectedPrimaryVertex" as input, but probably you can get the same result passinf to pfPU selectPrimaryVerticesQuality.