In the race for district attorney of Harris County , which includes Houston , Pat Lykos , a former police officer and judge , defeated Kelly Siegler , a flamboyant prosecutor , with 53 percent of the vote to 47 percent to gain the Republican nomination .