Having a similar mindset or outlook doesn't mean that people will get along. Getting along is about conflict resolution and tolerance of other people. The best teams are those with various personalities.
Look at the space program. All those astronauts put on a good show. They look like they all play baseball together on weekends. In reality, they are bunch of very assertive and competitive Type-A personalities that, absent the overwhelming desire to fly into space, would rip each other to shreds. They get the job done because it is a job, not highschool.