Avoid discussing divisive and personal issues, like religion and politics, or other issues that tend to cause conflict. If the other person tries to engage you in a discussion that will probably become an argument, change the subject or leave the room.
In dealing with difficult people, don’t try to change the other person; you will only get into a power struggle, cause defensiveness, invite criticism, or otherwise make things worse. It also makes you a more difficult person to deal with.
Try to look for the positive aspects of others, especially when dealing with family, and focus on them. The other person will feel more appreciated, and you will likely enjoy your time together more.
However, don’t pretend the other person’s negative traits don’t exist. Don’t tell your secrets to a gossip, rely on a flake, or look for affection from someone who isn’t able to give it. This is part of accepting them for who they are.
Good luck and best wishes.