The film is a masterpiece of nuance and characterization , marred only by an inexplicable , utterly distracting blunder at the very end .