That's why they designed confessional boxes in the first place! One of the counterreformation reforms that the spirit-of-V2_ guys did away with.
But, which way is better? Or "safer" for that matter?