On two quantum versions of the detailed balance condition