The fact that it is ultimately Dora who explicitly suggests that she and David shouldn't have married is another way in which the novel tries to cast David's actions in the best possible light; David senses vaguely that Dora isn't the best match for him, but he never goes so far as to say that he regrets marrying her, which might make him less sympathetic to readers. What Dora says, however, is clearly the position of the novel as a whole—that is, that David and Dora's relationship was based on an immature understanding of love and marriage, and that Dora in particular couldn't have fulfilled her duties as a wife. In other words, Dora's deathbed confession allows Dickens to underscore an idea central to the novel without calling David's character into question.