You pick out one incident when Jesus tells two Christians who have a person issue with each other and form a doctrine that the church is the final authority over the word of God????
So Jesus first says to take the issue before two or three other Christians. So before the church settles anything the other regular church goers get to decide doctrine? No, it's not about doctrine, it's about a trespass.
Mat 18:15 Moreover if thy brother shall trespass against thee, go and tell him his fault between thee and him alone: if he shall hear thee, thou hast gained thy brother.
Mat 18:16 But if he will not hear
thee, then take with thee one or two more, that in the mouth of two or three witnesses every word may be established.
Of course not, that would be stupid. Your scripture support for the church having final authority over doctrine falls flat. The passage is about trespassing one against another. Nothing more. This is how flawed your belief is. By the mouth of two or three witnesses doctrine gets to be settled? So if they all agree Jesus was married then it is settled, Jesus was married. That is how silly this would be using this passage as your support for the RCC having any final authority over God.