I've done lots of spin classes. My opinion they are good if you can't make it out for a ride. But if I can go out in a fast group tide, no spinning glass can match it for cycling benefit.
People get misled with classes and all the sweat. You are indoors in the heat with no wind. That makes for lots of sweat. I admit I feel drained sometimes from the classes so it can push you.