You made a reasonable assumption about how to achieve your goal, but wp_discourse_publish_categories won’t work reliably if you’re filtering to only one category with gutenberg editor.
wp_discourse_publish_categories
You should use wpdc_publish_post_category instead:
wpdc_publish_post_category
I’ll update the OP to note that.