I think the distinction is, and hope someone corrects me if I'm wrong, that she can testify secretly to Congress, but she can't testify secretly in a criminal. If she was unwilling to testify, because she doesn't want to get Monica Lewinsky type fame for the rest of her life, the DoJ couldn't get a conviction.
Congressional ethics committee doesn't operate under those rules.