There's no such thing as a hiring process that avoids that problem 100% of the time.
After all, most people will be on their best behavior during an interview, and even a lengthy interview process is a very short period of time compared to working with someone for weeks or months.