It genuinely depends on what you want. I've played both, and each has clear strengths and weaknesses.
Doom 3 is claustrophobic and relentless, built on tight corridors and darkness. Dead Space has the stronger complete package — the sound design and the visual direction work together to unsettle you in a way that stays with you after you put the controller down.
If atmosphere is your priority, Dead Space edges it.