"Both" is surely the best answer. Otherwise, it all depends what the guitar's actually doing. If it's a solo, or anything which really needs a human feel, the guitarist will benefit from the presence of the amp during recording. If it's just simple stabs, or power chords for texture, it often pays to record it clean, maybe pitch-correct and quantize some of the humanity out of it, and choose FX afterwards.