A close friend of mine has done very well financially. He told me a few years ago that his father told him he would like to leave everything to my friend's sisters who had a much greater financial need. My friend told his dad that he agrees with that, and that he won't be at all hurt by inheriting nothing. The key point is that there was a discussion beforehand, so there will be no feelings hurt nor any surprises. My friend is very close to his dad and to his sisters, so communications were easy.
My own parents had an interesting dilemma. My mom grew up poor and very much believed in giving equally. My parents had wanted to leave a specific bequest to one niece who could use the money, but they didn't want to offend that niece's sister, who is very well off (and who I suspect has been helping to support her sister for a long time). So my parents decided to bequest nothing to either one. My parents told me and my sibling about this. I proposed that after both of my parents die, that my sibling & I gift the intended amount to the poorer niece. My parents liked this idea and my sibling agreed to it, even though he doesn't like either of these cousins.
My parents had revocable trusts and my mom amended her trust after my dad got sick, naming me her Successor Trustee. After my mom died last year, I asked my sibling in an email if he remembered the agreement about the cash gift to one of our cousins. He affirmed that he did, which relieved me.
I am close to both cousins. Before I sent a check to the poor cousin, I called her wealthy sister and explained my parents' thinking and this agreement. I didn't want to her to feel hurt, nor have her find out from her sister. My cousin completely understood my parents' thinking and thanked me for telling her. Both nieces had been very close to my parents despite living far away.
I sent a letter and a check to my other cousin (the amount was within the US gifting threshold), simply saying my parents wanted her to receive this. I didn't mention her sister at all, nor mention this was an agreement my family had. She was thrilled and touched by my parents' thoughtful gift. Everything worked out well, and nobody was hurt thanks to good communications and people honoring their promises.