Failure of the charge-transfer hypothesis for superconductivity in YBa2Cu3Ox and in La2−βSrβCuO4