Please don't interview potential hires by having them do work while you look over their shoulder.
Pair programming in an interview is one of the most useful ways to evaluate candidates in my experience.
So algorithmic white board interviews are bad because they aren’t a measure of day to day productivity and now programming interviews are bad because reasons. How should I determine if engineers are a good fit then?
In my view, you should allow candidates to work on an assignment of your choosing to be handed in by a deadline you set.