It's not the same.
The equivalent would be you treating me physically after doing an autopsy without gloves and then delivering babies.
You do know what the death rate for those mothers and babies was simply because they didn't wash their hands, don't you?
Those priests who engage in that kind of sin are defiled spiritually and it has consequences.
So god punishes the people who attend their mass? I don’t think so.
however, I do agree that when the priest is living in sin (of many sorts, not just sexual sin) it does have consequences for the church and it’s people.