The seven sacraments · Question 3.4
“Isn't refusing someone Communion a punishment that discriminates against them in public?”

The Eucharist — Christ giving himself for us
The Church's answer: Communion is not a prize for a person's faith score or human worth; it is a public sign of real unity with Christ and with the faith, life and communion of the Church. That is why baptism, faith, grave sin and sacramental preparation are taken seriously. But no one may be shamed in public or have their standing settled by rumor, and an individual's situation has to be handled pastorally and in confidence.
If they press further: “If I can't receive Communion, is there any point coming to Mass?” — Yes. You can keep taking part in the word, in prayer, in the community and in acts of love. You can also talk through what is blocked, somewhere safe, and look for whatever path to reconciliation is open.
In one sentence: “The standard for Communion isn't a punishment that cuts a person's worth down but a standard that protects the truth of the Church's communion — and applying it has to protect confidentiality and dignity.”