This was the way that worked for me, but at first I had to set the newly created local account to administrator as well (in some randomly found option window in the Win Settings). Then after switching from the Microsoft account to the local, and opening the Accounts (Win+R, command: netplwiz) I could remove the Microsoft account.
Interesting to see how all the other options mentioned here weren't available or working for me, except this one.