She could take out all 3 socks with holes in them before she finds a pair.
If all of the white socks or all of the blue socks have holes in them, then having removed the socks with holes in them, Rachel will only have socks of two colours left, which will speed the process up.
So if Rachel is unlucky, there will still be socks of all 3 colours left after discounting the socks with the holes in them, and she will use up 3 choices taking a sock of each colour. Then, the 7th sock will have to make a pair with one of them.