I think a more appropriate comparison would be to say that Jesus should have shunned the lepers and prostitutes.
Nope He answered that.
Mar 2:16 And when the scribes and Pharisees saw him eat with publicans and sinners, they said unto his disciples, How is it that he eateth and drinketh with publicans and sinners?
Mar 2:17 When Jesus heard [it], he saith unto them, They that are whole have no need of the physician, but they that are sick: I came not to call the righteous, but sinners to repentance.
They were sinners who would repent.(at least the prostitutes). Sinners, get it?