Operator inequalities related to the Corach–Porta–Recht inequality