Leaving aside I don't think PiHole blocks by IP (unless you were proposing blocking via iptables) a rather more elegant solution would be to find out if they're using a "canary" url in the same way Firefox does and block that( which then leaves you free to use DOH to your upstream provider should you choose too)