That page does not state explicitly that the WebBrowserControl uses IE but if you search that page for Internet Explorer you will see that it does. So that is what the WebView2 control is for; it supports Edge instead of IE.
Use of the WebView2 control involves more than sample code; you need to also install the WebView2 SDK using NuGet. See Getting started with WebView2 for WinForms apps - Microsoft Edge Development | Microsoft Learn for full instructions and sample code.