Still, despite the fireworks, Mrs. Clinton’s associates said she seemed to have come to terms over the last week with the near certainty that she would not win the nomination, even as she continued to assert, with what one associate described as subdued resignation, that the Democrats are making a mistake in sending Mr. Obama up against Senator John McCain, the presumptive Republican nominee.

Her associates said the most likely outcome was that she would end her bid with a speech, probably back home in New York, in which she would endorse Mr. Obama. Mrs. Clinton herself suggested on Friday that the contest would end sometime next week.

But that is not a certainty; Mr. Obama’s announcement on Saturday that he would leave his church was just another reminder of how events continue to unfold in the race. She has signaled her ambivalence about the outcome, continuing to urge superdelegates to keep an open mind and consider, for example, the number of popular votes she has won. Gov. Phil Bredesen of Tennessee, a superdelegate who has been at the forefront of calling for uncommitted Democrats to make a choice soon after the last vote, said in an interview that Mrs. Clinton called him last week and urged him to “keep an open mind until the convention.”

Assuming Mr. Obama reaches the number of delegates and superdelegates he needs to secure the nomination in the coming week, Mrs. Clinton will be faced with three options, associates said: to suspend her campaign and endorse Mr. Obama; to suspend her campaign without making an endorsement; or to press the fight through the convention. Several of Mrs. Clinton’s associates said it was unlikely she would fight through the convention, given the potential damage it would do to her standing in the party, which is increasingly eager to unify and turn to the battle against Mr. McCain.

Image Senator Barack Obama addressing supporters on Friday in Great Falls, Mont. Democratic primary voters in Montana and South Dakota will go to the polls on Tuesday. Credit... Ozier Muhammad/The New York Times

Mrs. Clinton would almost surely face the defection of some of her highest-profile supporters, as well as some members of her staff. She would no doubt also face anger from Democratic leaders.