You’ll have to use containers or VMs if you want to be able to control Kodi via the HTTP API (eg. remote control apps or the web ui) while also being able to access the Pi-Hole web ui.
For pirating with Kodi I’d recommend looking into a Debrid service combined with an addon like Umbrella or Seren and a nice skin such as Arctic Horizon.