I'm going to pretend to agree with my grandfather's racist and homophobic worldview in order to secure my inheritance
Why are you pretending to agree with your grandfather when you actually don't?
I do not want to go against him.
You should communicate with your grandfather and help him understand that you find his behavior offensive. He will not learn anything if you keep quiet and pretend to agree with him, and you shouldn't have to suffer in silence like that.
It's all good because deep down I know he loves me anyway. I just don't want to hurt his feelings either. He's a shy guy.
Well, racism and homophobia are both still wrong even if you pretend anything about it. I would have hoped you could try to change his mind, it is still possible. Can you do that for me?