How to bench the judge-the affidavit of prejudice court rule

A good attorney will know all the judges in a particular jurisdiction and what judges are good for each particular kind of case and issue. But how can an attorney get a particular case set in front of the ideal judge? In Washington State, we have an affidavit of prejudice statute, RCW 4.12.050, Superior Court Criminal Rule 8.9, and CrRLJ 8.9 (for District Court). If a criminal case was a game of cards, the affidavit of prejudice rule is a playing card that says if an attorney or defendant thinks that a particular judge cannot be fair and impartial, they can play a card against that judge and a replacement judge must be brought in. But you can only play this card once. Also, there are limits as to  when you can play this card. So while you cannot pick the best judge for your particular case, you can get rid of the worst judge.