Chazal teach us [.בבא בתרא כ"ב] that קנאת סופרים תרבה חכמה - envy between scholars increases wisdom [i.e. competition]. Some people understand this to be an ideal. We are competitive beings so use that competitive spirit to increase your learning.
But if you think about it - that is why I should learn?? To *beat* my friend? Shouldn't I learn לשמה [according to the multiple meanings in our sources]??!
Chazal also teach us that at the end of days before Moshiach the wisdom of the scholars will rot - חכמת סופרים תסרח. What will cause this rot?? Maybe... that the wisdom was achieved through competitiveness and not through learning לשמה.
החכמה שמתרבה מתוך קנאת סופרים, כיון שבאה מתוך קנאה סופה להירקב, וכל ריקבון יש בו סרחון, וזאת היא חכמת סופרים שתסרח בעקבתא דמשיחא. ועל ידי סרחון זה תתבטל צורתה הקודמת, ויוחל להיות מאיר אור הנשמה של החכמה העליונה, העליונה מכל קנאה. שהיא למעלה מחכמת סופרים. היא החכמה שתצא לאור על ידי שיר חדש, ושם חדש אשר פי ד' יקבנו, ויהי כזית הודו, וריח לו כלבנון.
The wisdom that increases from the envy of scribes, because it comes from envy, is destined to rot, and all rot has a stench, and this is the wisdom of scribes that will stink in the footsteps of the Moshiach. And by this stench, its previous form will be nullified, and it will begin to illuminate the light of the soul of the highest wisdom, which is higher than all jealousy which is more than the wisdom of scribes. She is the wisdom that will be revealed by a new song, and a new name that will be established by the name of Hashem, and her beauty will be like the olive tree, and her fragrance like Lebanon.