Both will do a fine job, and it depends on what you need from your gear.
You don't always need a DAC and amp to enjoy music through headphones. If your computer or laptop's headphone jack already delivers clean audio at a comfortable volume, then you're probably fine. Some MacBooks from 2021 and later, for example, support both low- and high-impedance headphones and can deliver up to 3 volts RMS through their headphone jacks when you use headphones rated between 150 and 1,000 ohms. If your headphone jack isn't quite as capable, or if you're not satisfied with the sound, though, then it's time to spend on some hardware.
A DAC and a headphone amp can come together in a single unit (usually known as a DAC/amp) or as a stack of separate units. And while the latter seems like the more serious setup, it doesn't necessarily mean you'll enjoy a better listening experience. The main job of a DAC is to turn digital audio signals into analog signals, while the amplifier takes those analog signals and makes them loud enough to power your headphones. Both a DAC/amp combo and a stack do the same thing, and which you go for largely depends on your headphones, how much flexibility you need and, of course, your budget.



