It really depends on your preference. Do you want to gain muscles, or do you want to lose weight? Do you want it fast, or do you want it slow? Can you be motivated by working in an isolated environment in comparison to an environment where everyone is working out? I prefer home-based workouts for losing weight as HIIT can be done in the comforts of your own home, but when it comes to gaining muscle, I prefer going to the gym because it's faster to gain using the equipment they offer.