Suppressed superexchange interactions in the cuprates by bond-stretching oxygen phonons