Quantum-mechanics-free subspaces in composite systems with incompatible energy spectra