The Church teaches infallibly in Christ's name. It has always taught that the unjustified taking of an innocent human life, which is the very definition of abortion, is intrinsically, gravely sinful. This is a dogma.

Capital punishment, on the other hand, may be used, licitly, under certain conditions. 

Obviously, there's a difference between the two issues from a morality standpoint. Show me where I'm wrong.