Both are fit for purpose but generally if you are at, or above intermediate level we always strongly recommend individual classes when you come to learn Mandarin in China. As your Chinese progresses, it's likely your level becomes much more niche. Some people excel in writing, some in speaking, some in reading. At earlier stages of learning, the levels tend to balance out more. Therefore having your own personalised study plan from a mid range level is key.