It may be nice for the rich to be charitable, but that isn't the key thing -- no one buys their way into heaven.
I would say it is much more in line with Church teaching to have the poor behave in a Godly manner which will help them and their families rise up through renouncing sinful behavior.
You are assuming that the wealthy are trying to buy their way into heaven. They might not. They just might feel guilty and try to atone.
The poor and rich both behave badly. Bad/good behaviors have little to do with bank accounts. Sinful behavior crosses all races, creeds, both genders and all ages...nothing to do with money. You KNOW that.
Maybe you are thinking that the RICH can afford bad behavior because they can afford fancy schmancy attorneys to bail them out of their bad behaviors. The poor who misbehave just have to LUMP IT.
The Church extols ALL to behave in a godly manner, even the rich.