Yosef Karo, Shulchan Aruch — Choshen Mishpat 29
“ If, however, a witness says so and so was with me and that person says he was not with him, that is not a contradiction, because a witness does not pay attention as to who is with him at the time of the incident. ”
