I do not believe there's a built in way to hide a product from the sitemap without also removing it from the site. You will probably need some custom code to modify sitemap generation to exclude products specifically or through some shared attribute value. There may be an extension to help you if you don't mind purchasing and experimenting with one of those. For example: https://www.scommerce-mage.com/magento-google-site-map-exclusion.html (I haven't used this extension vendor so this isn't a recommendation).