Episiotomy or tearing?

At my childbirth class, we learned that our body heals better after naturally tearing as opposed to having an episiotomy. But I've heard from other people that a good doctor gives an episiotomy so that you don't tear. So I'm a bit confused, which is better?