I generally had the understanding that there is no way one can save the deceased from the consequences of their Kamma. At most, we can send Metta to the deceased which may comfort them wherever they exist. This understanding of mine is based on this story, wherein the Buddha using the analogy of butter and stones in two earthen pots makes the son of a deceased father understand that one cannot help the deceased escape from their Kamma by performing rites and rituals.
But I was surprised to come across the Ullambana Sutra in another answer in this forum, where the Budhha seems to suggest the contrary - recommending rites and rituals for the benefit of the deceased and in fact their liberation from woeful states.
Can anyone clarify this contradiction and elaborate on how one can help the deceased? Is Metta for the deceased effective for their well being?
P.S. My question is not to create controversy. I'm more interested in learning the right view than the contradiction, if that helps anyone answer. I would be glad even if anyone answered the question without touching upon the contradiction part.