You’ve documented the poor performance. You’ve been careful to keep things professional, even as you’ve concluded you’ll probably have to fire the employee. Then he files a discrimination complaint. Avoid the temptation to speed up the usual disciplinary process.