Getting good grades is only worth it if the professors judgement of what you need to learn is more accurate than your own.  Considering that a) your professor probably has likely very little real world experience and b) your professor has no sense of your own personal interests, goals, and strengths, self-directed learning is almost always the better option.