I was able to create a vendor transaction using the Cost of Good Sold account as the category detail. Let's consider logging into your QuickBooks Online account using a private or an incognito of your browser.
By doing so, we can identify why the error in red, saying you need to select an account, keep showing up. Let me guide you on how to open the said browser using a key shortcut on your keyboard.