I think im going to say a bunch of weird stuff to make this guy stop talking to me.
What caused you to want him to stop talking to you?
He was talking to me about boring things and I wanted to get rid of him.
You don't enjoy talking to him and that's fine but don't you think that's a bit extreme? You could just tell him to leave you alone or something instead. Doing something extreme to sold such a small problem isn't the right play.
I don't like people telling me what to do.
Wanting to get rid of someone because you find what they are talking about to be boring is kind of rude. Do your best to finish your conversation with them, and see if you can gain some sort of positive perception from what is being said.