Krasner secures a third term as Philadelphia DA, while O’Connor unseats Pittsburgh’s first Black mayor, Ed Gainey, in key Democratic contests.