Denise O'Donnell , a former federal prosecutor from Buffalo , has dropped out of the race for state attorney general , saying she did not want to undertake a lengthy and potentially divisive primary .