The only time I did group work was for the Deep Learning class (2-4 people) and my group members were excellent. Other than that one, no group work for me.
The key is to pick classes that are hard, and form groups early. People that reach out earlier usually have their shit together.