This willl work only on the device it's installed
Plus more resources consumed on that machine
Pi-hole works on the whole network and does not consume any kind of resources on any device
It's also got something related to von where even on mobile network you can make pihole on your home WiFi block ads for you
But it's slightly risky as there needs to be an open port in the home network