1) The type who does exactly what the OP said, treat people like trash and think when they commit to an idea, they are often right. When they change their opinion, they don't give credit either, since they want to maintain the image that they are often right. I have seen great teammates left due to those people. I would not want to work with those people either.
2) The second type also hold strong opinions. When they change their view, they attribute it to people who brought it up. They don't care about maintaining an image that they are "often right". They genuinely thanks the people who brought them good arguments that changes their strongly held opinions. It's not about who invented the idea. But they understand it's good to appreciate people from which you get the new idea. I love working with those people. I try to give proper credits to people when they show me new ideas.