I’ve found a bug.
When ‘Enable automatic dark mode color scheme’ is ticked - and dark mode is activated - Discourse gets the ‘logo dark’ image from branding correctly.
However if ‘Enable automatic dark mode color scheme’ is unticked - and dark mode is activated - Discourse uses ‘logo’ from branding, not ‘logo dark’