8.8.8.8 (Google DNS) is a regular or "plain" DNS, meaning DNS queries aren't encrypted so your ISP can still intercept that data on their side. Using DNS-over-HTTPS means your DNS queries are encrypted hence it's much more secure (and nicer from the privacy standpoint) and would be recommended to use. The DNS-over-HTTPS address for Google DNS is
https://dns.google/dns-query which can be used in Windows itself, and all the major web browsers support it as well. There's other DNS protocols like DNSCrypt (which requires an extra app to use, though I would use DNS-over-HTTPS over it personally), DNS-over-TLS (which I wouldn't recommend as ISPs can technically block this) and DNS-over-QUIC as well.
1.1.1.1 (Cloudflare DNS) is the alternative, with its DNS-over-HTTPS address being
https://dns.cloudflare.com/dns-query. Usually Google DNS or Cloudflare DNS is probably going to be the fastest one, depending on geolocation.
Quad9 is also decent and is the default upstream DNS used in AdGuard Home (like Pi-Hole, but better). Speaking of AdGuard I personally use their AdGuard DNS Non-filtering DNS server (I use DNS-over-HTTP/3 which is the "next generation" DNS-over-HTTPS and it's pretty darn fast if I say so myself) though I also do have a subscription to their personal AdGuard DNS service that has customizable domain-name ad-blocking without needing to use HOSTS files or Pi-Hole/AdGuard Home that I could use with some devices that don't have any sort of ad-blocking. It's great.