Sometimes you hear something that you may not immediately warm up to. This is normal.
However, what if this is something from Shari'ah, from hadeeth, or even more important, from the word of Allah Almighty, the Quraan?
At this moment you must realize one thing.
You are a Muslim.
What is a Muslim? A Muslim is a person who submits to the will of Allah Ta'aala, no matter whether the order is one they like or dislike. A Muslim is one who has no say when the Creator has given a command or refrainment.
So at a time like this, the best thing is for you to realize that your knowledge is limited, and due to this limit you are not knowledgable enough to understand why a certain command is given. You should condition yourself to the understanding that it is a flaw on your part that you may not find a certain command pleasing. You should also strive to change your views in accordance to the commands of Allah Ta'aala. Just like a rose bush submits to the gardener's cutter so that it may grow beautiful and healthy, submit to Allah commands to grow spiritually strong and beautiful in the Eyes of Allah.
Only then are we truly Muslims, submitters to the One True Allah.