Drums - replace first or edit first?

Generally (99% of the time) I edit then replace...HOWEVER

One time I had a really terrible drummer, so I actually did a rough replacement first. I needed to know if the samples would hide some of the absolutely insanely bad edits I HAD to make in order to get a drum track that was even passable.