The Church used to deny public funeral Masses (the greatest prayer of all) to certain notorious mafia figures and also many times for ѕυιcιdєs. Why is that? I supposes it was judged that the person was not deserving due to their evil state of life on earth and that it would cause scandal to the faithful.
I believe the Church decides who shall have a public funeral Mass NOT on how they lived their life but how they died.
Mafia boss: if he died in a shoot out with police, no Mass. If he died in bed after confession he gets a Mass.
ѕυιcιdє: if he dies committing ѕυιcιdє, no Mass. If he survives the attempt long enough to confess to a priest he gets a Mass.
The problem is the general public has no first hand knowledge of each individual case. Everything is based on hearsay, speculation and gossip and/or the media.
Only the priest knows the circuмstances of a death and that is what he decerns as to whether or not the deceased gets a funeral Mass or not.
God judges your state at the moment of death. So does a priest.