I was doing the same work as another grad student in our office. We had the same professor but different advisors and should’ve been cross checking results. His advisor invited him to present his results at various meetings. He was not encouraged to mention that he was collaborating with me. His advisor didn’t like my advisor and he credited all of my work to my advisor, even though I was doing all of the programming and data crunching – just like his student was doing. There was really no reason to make a competition out of it because we were all going to be on the same rather insignificant paper. His advisor pretended like I didn’t exist when he came into the group office. It was so obvious that a student outside of our collaboration commented on it. I told the professor about it an he assured me that I was misinterpreting things and that the egomaniac adviser was really a great guy. They went sailing together.