Would you rather get someone who can do fizzbuzz correctly on a board the first time in 7 minutes or someone who can write it in 1 minute on a laptop incorrectly, test it, and fix it in 30 seconds?
I see no value in the "gotcha" of you made a logic mistake since we all make them and there's a reason why we test code