Both will work. The thing most important to gain strength over time is progressive overload. If this is done by bodyweight or weights and a bar. Does not really matter.
Next to this it's also a choice at what kind of things you want to become good at. Or if you go for a esthetics. The goal for a big part determines the route to take.