Direct2IP means it doesn't need DNS at all, because it already knows the IP-Address it needs/wants to talk to.
So, unless your PiHole _also_ blocks certain known malicious IP-Addresses or -networks (or entire AS for that matter) the DNS blocklists, or enforcing the PiHole's DNS server makes exactly zero difference for that type of malware.