They're both ways people try to get to heaven.

See, sometimes people think you get to heaven by doing nice things for others. (Doing nice things for others is good, but it's not what gets you to heaven.) Sometimes people think you get to heaven by "looking good," attending church and giving money to poor people. No, that doesn't do it either.