Spoilers from here. The ending is discussed in full, including who dies and when.
The film ends with Ed Tom Bell, newly retired, describing two dreams about his father over breakfast. He finishes the second, says he woke up, and the film cuts to black. There is no confrontation, no resolution and no final encounter with Chigurh.
What happens in the last act
Llewelyn Moss is killed offscreen by Mexican gunmen, not by Chigurh, and the film does not show it. Bell arrives at the motel afterwards and finds the aftermath. Carla Jean is visited by Chigurh at her mother's house, refuses to call his coin toss, and is killed. Chigurh is then hit by a car at a junction, sets his own arm and walks away.
Why Moss dies offscreen
The film has been constructed as a thriller for two hours, and thrillers deliver their protagonist's death as a climax. Refusing to show it withdraws the structure the audience has been relying on.
It also makes a point about who Moss was. He is not the subject of the story, and his death is an event Bell reads about afterwards, which is exactly how the sheriff experiences everything else in the film.
The car crash
Chigurh is not defeated by it. He is injured by something entirely random, which is the one thing in the film he does not control and cannot argue with.
He has spent the story presenting himself as an instrument of principle, offering coin tosses and insisting that outcomes follow rules. The junction demonstrates that chance operates on him too, and that his system was always a story he told about arbitrariness.
The first dream
Bell describes losing money his father gave him. It is brief, and it establishes a straightforward sense of having been entrusted with something and failing to keep it.
The second dream
Bell and his father are riding through a snowy mountain pass at night. His father passes him carrying fire in a horn, head down, going on ahead to make a fire in all that dark and cold. Bell knows that when he gets there his father will be waiting.
Then he says he woke up, and the film ends.
What the dream means
The image is of a previous generation going ahead into the dark to prepare something. Bell's father died younger than Bell is now, which the film has already told you, so the older man riding ahead is also the man who is already dead.
The comfort is real and it is available only in sleep. Bell wakes, and the last three words of the film remove the fire, the father and the waiting. What remains is a retired man at a kitchen table who has concluded that he was not equal to what he was facing.
Why this is the ending
The film's subject is not whether Chigurh is caught. It is Bell's discovery that the world he policed has changed into something he does not understand, and that his sense of himself as a man who could handle it was inherited rather than earned.
An ending in which he confronts Chigurh would refute that. The film gives him a dream instead, and then takes it away, which is a far more precise conclusion to what it has actually been about.
What Chigurh represents
Readings that treat him as death or fate are tempting and slightly too neat. He is presented as a man with a code and the film spends its final act demonstrating that the code is not real: he offers Carla Jean a coin toss she refuses to accept, and she tells him the choice is his and always was.
He kills her anyway, and is then injured by a driver who ran a red light. The two scenes together dismantle him, which is a more interesting conclusion than making him a supernatural force.