Yes, using a ledger is primarily cheaper, simpler, and faster, which is why it's often used if there's enough space. However, it increases the height significantly more, so if you want or need a lower solution, joist hangers are a good option. As long as it's done correctly, both solutions are equally durable.