In many cultures, doing the decent thing is highly praised and often expected in social interactions. At the funeral, they did the decent thing by offering their condolences to the family.
Pro Tip 2/3
Moral Dilemma
The phrase is often used when a person is faced with a choice where the morally right action is clear. Even though it was hard, she did the decent thing and admitted to her mistake.
Pro Tip 3/3
Expectation vs. Action
It underscores the difference between what's expected and what one actually does, focusing on the right action taken. After the debate, the candidate did the decent thing by shaking hands with his opponent.