Local congruence of chain complexes