When to use @extend; when to use a mixin

from blog CSS Wizardry, | ↗ original
When is it suitable to use Sass @extend or mixin features, and why?