Probable bug Dorico 3, Windows 10 - 64bit.

If you “insert the tonality and subsequently enter the notes” (using the computer keyboard), Dorico assumes you want a Bb, because it’s in the key signature (tonality). If you have no key signature when you enter the notes, Dorico assumes you want a B natural.

I’ll be careful next time …
Thanks