How do I go about this without ruining my son's friendship?

My 6 year old has a friend he likes to play with, so far the mom has been fine and the dad was fine at first but after a longer playdate the kids dad is honestly insufferable.

I held my tongue and stayed polite but this man was like rage baiting and trying to find something to argue about. He was throwing every opinion he had at me to try to get some kind of a rise and then he made a statement saying good thing I don't have another child because "it could be a female and that would be awful". Another example was he was saying things like he didn't want his kid around city kids and talked about how poor and trashy city people are and talked about how he doesn't like gay people, made sure to bring up several times that he has guns and that nobody fucks with him, that sort of thing. I have been in the situation of interacting with many parents with different views and things and that doesn't bother me it's his insistence in trying to argue with me and say things that are appropriate and unnecessary to discuss at a play date.

I don't want to ruin my son's chance with having a playdate and a friend and everything but I don't know how to keep my cool around someone like that. I didn't but I don't normally let people talk to me like that and I'll usually stand up for what I believe is right if someone says something inappropriate. What do I do ? Have other moms here ever been in the situation of your kids friends parents being awful people but you don't want it to effect your kids friendships?