From the Pope himself:
3.
Not all moral issues have the same moral weight as abortion and euthanasia. For example, if a Catholic were to be at odds with the Holy Father on the application of capital punishment or on the decision to wage war, he would not for that reason be considered unworthy to present himself to receive Holy Communion. While the Church exhorts civil authorities to seek peace, not war, and to exercise discretion and mercy in imposing punishment on criminals, it may still be permissible to take up arms to repel an aggressor or to have recourse to capital punishment. There may be a legitimate diversity of opinion even among Catholics about waging war and applying the death penalty, but not however with regard to abortion and euthanasia."
priestsforlife.org/magisterium/bishops/04-07ratzingerommunion.htm
I think that quote is being signfiicantly missused. First of all, it was a letter from then Cardinal Ratzinger to the Bishops. The Bisohps were asking if voting for the death penalty or war rose to standard necessary to meet CIC 915 - that is, does support of the death penalty rise to obstinate grievous sin, premitting communion to be withheld by priests or Bishops. The Cardinal explained that, even among important teachings, there are differences. The Church concedes that there might be instances were war is just or the death penalty nec. for society’s self defense.
What makes this quote seem particularly disingenuous in this contrext isn’t that it was written by a Cardinal, not the Pope, or that it was addressed to the Bishops, not the laity. It isn’t even that it was on a completely different subject. What bothers me is we HAVE a statement ON VOTING from the Church, ADDRESSED to the laity. It is signed by a POPE and by the SAME Cardinal, as Prefect. That is, Cardinal Ratzinger attested that it is true and correct. That document, as I have shown, lists both torture and abortion among the things that cannot be compromised.
Regarding your first quote, no one disputes that abortion is an important teaching that does not allow compromise. The question is, is is so important that you can tolerate other grave evils because of it. As we have seen, your document seems to say no. It warns us that we cannot tolerate evil, even for Good ends, and it lists torture as something that cannot ever be tolerated.
The question of which is ‘worse’ is a red herring. It does not matter which I think is ‘worse’. What matters is that the Church teaches that both reach the threshold of zero tolerance. To me, this makes perfect sense. Say a politician supports an absolute ban on abortion, but also supports lowering the legal age of sexual consent to 5. Under the concept of abortion-first-and-foremost-even-at-the-expense-of-other-teachings it could be argued that voting for the politician might be licit.
However, “society’s protection of minors” is another item that the Church says does not allow compromise. It is another teaching which is the essence of moral law. The question is not, ‘which is worse, abortion of pedophilia?’ The question is only, ‘does the candidate support anything that the Church says reaches the threshold of zero tolerance for the Catholic faith?’