No it isn't. The sworn duty of the prosecutor is not to get a conviction, it's to get the truth. Trying to force someone to confess to a crime they didn't commit by threatening to lock them away for most of their adult life, is only a very small step away from torturing someone or threatening them with execution to obtain a confession.