This is like shaking your fist at gravity.
Everyone's in competition all the time whether they like it or not, that's the universe we live in. Given a choice, you're going to advance the person who's glad they got into computer science, all things being equal.
Even worse than regretting her degree in computer science is the poor judgment she displayed by saying that in front of a manager. The statement is clearly not in her own best interest, it's fairly obvious, and she completely failed to recognize that.
It's not a huge deal by any means, but objectively, it's a negative indication. Why should managers ignore that? Those are relevant data points she just revealed.