https://en-au.wordpress.org/plugins/parentless-categories/
Parentless Categories – WordPress plugin | WordPress.org English (Australia)
Provides a template tag like the_category() to list categories assigned to a post except those that have a child category also assigned to the post.
wordpress pluginenglish australiaparentlesscategories