We shouldn’t pay attention to such people. We should only show them Islam and its teachings and if they accept it, good for them and if they don’t, they are the ones who are going to hell.
As Muslims, we don’t go out of our way to convince people of this or that. We simply show them Islam as it was revealed. They will keep on attacking our Prophet salla Allahu alaihi wa sallam so that they can persuade us to leave Islam. That is why, such people are ignorant and we shouldn’t waste our valuable time talking with them. We should look for people who want to learn and know Islam to benefit from.
And Allah knows best