opt_dff: Fix behavior on $ff with D == Q.