WASHINGTON — Democrat Corey O’Connor won election as mayor of Pittsburgh on Tuesday.