What do you think you'll most enjoy and stick to?
I bought a spin bike last year for home, but only because there are few gyms in my area. When I used to live closer to a Y, I loved going to spin classes and otherwise working out at a gym during the winter. Lots of other people do better with equipment they have at home since that is presumably more convenient and, over time, possibly cheaper.
If you do go with home equipment, research it before making a decision. There is affordable home equipment but some if better than others. And if you can, borrow somebody's trainer before making a decision about it. Some people don't mind them too much. Others (like me) hate them. I get bored out of my mind on them.
Live with intention. Walk to the edge. Listen hard. Practice wellness. Play with abandon. Laugh. Choose with no regret. Continue to learn. Appreciate your friends. Do what you love. Live as if this is all there is.
--Mary Anne Radmacher