Spectral inequalities and equalities involving products of matrices