“Treat pleasure and pain, gain and loss, victory and defeat as the same, and get ready for the fight.”
Krishna says this to a warrior right before the biggest fight of his life. Steady first, then go all in.
A trophy, a top grade, a spot on the team. The Gita doesn't tell you not to want to do well. It tells you how to stay steady whether you do or not.

“Treat pleasure and pain, gain and loss, victory and defeat as the same, and get ready for the fight.”
Krishna says this to a warrior right before the biggest fight of his life. Steady first, then go all in.
“Someone joined to clear understanding leaves behind both good and bad deeds, here in this life. So hold to yoga: yoga is skill in action.”
Skill in action means doing the thing well, with a clear head. Not only winning, but acting well.
“Free from attachment, not full of himself, firm and confident, unchanged by success or failure: that doer is called pure.”
The Gita's picture of a good doer is confident and determined, and the same person after a win as after a loss.
The Gita isn't against success. Krishna wants Arjuna to fight, and to fight well, and he calls yoga skill in action (2.50). What he warns against is letting the result run you.
So he asks for balance: victory and defeat met alike (2.38), and an even mind in success and failure, which he calls yoga (2.48). That doesn't mean not caring. It means a win doesn't puff you up and a loss doesn't flatten you, so you can keep working either way.
The doer Krishna praises is firm and confident, and unchanged by success or failure (18.26). That helps on both sides. A steady winner keeps practicing. A steady loser comes back next week.
…yoga is skill in actionBhagavad Gita 2.50, Annie Besant's translation (1922)