Another chapter in a generational battle over the future of the Democratic Party appears to be taking shape in San Francisco in a fight for the seat now held by former House speaker Nancy Pelosi.