Preventing a townie's death is slightly more important than outing a member of the scum imo. Keeping the town's' numbers higher than the scum's is first priority.
Then again, it really comes down to the player, not the role. An excellent doc definitely outweighs an ok cop, but a great cop...