Man-to-man is generally the better defense if you can play it, because you can adapt it to the other team and to how the game is going. Zone has its place too, and a lot of coaches use it for specific reasons.
Man-to-man is highly adaptable. You can make switches. It generally gives you a level of aggressiveness that can disrupt the other team's timing and rhythm, and it generally lets you rebound better.
Zone can change the rhythm of a game. A lot of coaches will go to a zone quickly during a game just to change the rhythm. They also use it to protect players in foul trouble, and against teams that cannot shoot.
Depending on the zone, there are other reasons. A trapping zone can help you catch up late in a game while you still protect the rim.
So there are a lot of different reasons to play man or zone. Start with man-to-man if your team can play it, and know when a zone gives you something you need.
More Defense questions
Free playbook
Get the free flex offense playbook
Every flex cut, starting set, counter, special and drill, with all 30 diagrams, in one printable PDF.