A pair of retirements has created open battles for attorney general and state comptroller for the first time since 2014.