Show post categories

If you select both categories for the post the_category() will display both and using multiple will make the child category display the parent relationship, so you will have the parent twice. If you want to display a link to the parent category and a link to child category select only the child category for the post and use the_category("https://wordpress.stackexchange.com/", 'multiple');.