D5 race displays key SF political dynamics