Jewish children must not be baptized against their parents’ will, since that is against natural justice. Yet a stubborn heretic may be handed over to be severed from the world by death. The Catholic Church backed religious freedom in 1965, and in 2018 called the death penalty inadmissible.
From Summa Theologica by Thomas Aquinas