Go look at all the residency application threads on here and see how many people are concerned they aren’t top 25% in their class. Probably wishing they tried a little harder now that they decided to specialize years later. But if you are 100% sure you don’t want to specialize, then grades don’t matter. But like others said, you should still try and learn.