This is by far my favorite question on this app, but anyway just call them out on it. Tell them that if there's a problem, it's their fault for staying in the issue and not leaving.
Racism- Tell them that it's extremely disrespectful not just to you, but to other people the same race as them.
Homphobic- Tell them to mind their business. It isn't hurting their life in any way, so it's their fault for getting in the situation in the first place
*I hope this at least helps a little with whatever conflict you're in. Stay strong and take care :)*