The word of Quran is ultimate and supersedes all ahadith as it is the word of God. Assuming that Prophet (saw) has said or done something that is against Quranic teachings (nauzobillah) is pure blasphemy -as Quran itself claims that prophet doesn’t say or do anything that goes against Quran.
Quran is as pure today as it was when it was revealed to Prophet Muhammad (saw) 1400+ years ago. Whereas Ahadith were collected 100s or years after demise of prophet (saw) and don’t hold the same authenticity as Quran holds. Ahadith can be ‘zaeef’ but Quran is pure. So any hadith that goes in direct conflict to Quran can be thrown away is that can’t be a word of prophet (saw).