Throughout the play, Shylock is seen putting money before his daughter. When we hear about Shylock's response to Jessica's elopement, it seems like he's more worried about the gold Jessica stole than the fact that his daughter is gone. From the phrase, "'My daughter! O my ducats! O my daughter! / Fled with a Christian! O my Christian ducats!"we can tell that he actually values his money is lost rather than he lost a daughter. Hence, Shylock is depicted as a shallow materialistic man who values money more than kinship and is part of Shakespeare plans
Next, Shylock is seen as a bloodthirsty villian who wants the kill mainly Antonio by taking a pound of his flesh through a bond which he signed with him. Shakespeare here is probably trying to depict the Jews as bloodthirsty barbarians who are hell bent on taking Christian's lives. Hence, Shylock as a Jew is used to show anti-semitism thoughts by of Shakespeare himself.
Next, in the later part of the play, Shylock makes this comment.
Hath not a Jew eyes? hath not a Jew hands, organs,
dimensions, senses, affections, passions? fed with
the same food, hurt with the same weapons, subject
to the same diseases, healed by the same means,
warmed and cooled by the same winter and summer, as
a Christian is? If you prick us, do we not bleed?
if you tickle us, do we not laugh? if you poison
us, do we not die? and if you wrong us, shall we not
revenge? If we are like you in the rest, we will
resemble you in that. If a Jew wrong a Christian,
what is his humility? Revenge. If a Christian
wrong a Jew, what should his sufferance be by
Christian example? Why, revenge. The villany you
teach me, I will execute, and it shall go hard but I
will better the instruction.
Here Shylock insists on the fact that Jews and Christians share a common humanity. He also exposes the hypocritical minds of the Christian characters (such as Bassanio) who are always talking about love and mercy but then go out of their way to marginalise Shylock because he is Jewish and different and hence emphasizes and reminds everyone in the play that Christians are biased against the Jews.
Hence, in conclusion, although Shakespeare created the Merchant of Venice to discriminate against the Jews, he also added in points whereby he shows that it is wrong of the Christians to do so. I think that he created the play to show that the Jews were being discriminated rather than to discriminate the Jews as the last segments of the play shows that Shylock had stated out all the facts. If Shakespeare had not thought that way, he wouldn't have included the last part of Shylock's speech whereby he stated all the discrimination.