Inkster judge wins primary despite losing bench