XML Sitemaps WordPress

XML Sitemaps for WordPress seem to be very hard. In my own projects and most client projects I’ve worked on we always ended up custom coding the sitemaps because neither SEO plugins (Yoast, The SEO Framework) nor XML Sitemap Plugins (Google XML Sitemaps) have adequate filters/settings to bend them far enough.