Welcome to the competitive world. Welcome to reality.
They are sitting in class with you. They will also be sitting in the interview waiting room or shaking hands with the interviewer in the time slot just before (and after) yours. All those students with whom you have been competing for grades are now your direct competition for jobs. These students are the same ones who blew the top end of the curve on the last test. But keep in mind that this is not the chemistry final. It is not how much you know, but how well you communicate in the interview. The 4.0 student who cannot interact well with people will actually have more difficulty finding a job than others.
Know your competition and what they have to offer. Know yourself and what you have to offer. Be ready to differentiate and sell yourself based upon your unique value proposition.