I don't think it would be safe to say wrong in "a lot of cases". There are very rare cases where Jesus lets his bias get the better of him. Even in the case where he refers to a woman as a dog, he is going beyond the bias of his followers by even helping the lady.
Matthew 15:26
Although maybe he knew he was wrong, on purpose perhaps, cause she seemed to win the argument. It may be a lesson to teach Jews about being "chosen".
Matthew 15:28
Jesus also had bias about trees not baring fruit but thats where it really appears to me that the stories and miracles are wholly allegorical to greater truths.
Matthew 21:19
Anything else I can think of was well beyond Jesus's time, showing compassion and forgiveness that his own followers had a hard time with in many instances.
Jesus was not born knowing everything. The connection to His soul grew as His human body grew. At the time of His traveling and preaching His connection was fully developed and He knew who He really was. Jesus is the architect of this universe. He designed, within guidelines, and supervised it's formation and the formation of the many angels that it takes to operate a universe.
Jesus now has access to all the knowledge in this universe but He does not have access to the knowledge about other universes so, He does not know "everything". Having access to all knowledge does not mean you are without error. Jesus on the Earth was in a human body so He had emotions.
Could Jesus have been wrong? One mistake that Jesus made was turning water into wine at the wedding. Jesus had decided not to perform miracles in view of humans because that would be absolute proof and essentially remove their element of choice but the universe follows Jesus desires instantly, not just His spoken word.
Jesus mother Mary had received a visit from an angel before Jesus birth telling her that her child Jesus would be the Son of God. Mary wanted Jesus to become a leader and help free the Jews from the Romans but Jesus refused to lead the fight. Mary was very confused as Jesus grew up. Then, many years later, at the wedding when the wine ran out, Mary asked Jesus to do something and she fully expected Jesus to perform a miracle. Jesus verbally refused her but inside He did not want to disappoint his mother and it was done instantly. Water became wine.
As for the Matthew 15:26 quote. Jesus did not refer to women as dogs. What He was saying "It is not meet to take the children's bread, and to cast
it to dogs", is that you don't use great things on useless causes. The child had a severe mental disability. But, He did cure the child when the mother continued begging. I know you will think that His action, at first, was heartless but the angels and Jesus and even God don't exist to give you what you want. God wanted varied experiences, not experiences of the rich and lazy and selfish.
Matthew 21:19, Jesus did not have a bias about trees not bearing fruit. The bias was towards a
fruit tree that did not bear fruit. And, it was a tree so don't try and change the context and apply it to humanity.