I suggest that you use the MFA TOTP (Time-based One-time Password Algorithm) for the ASP.NET Core as described in the following Microsoft document:
Multi-factor authentication in ASP.NET Core
"MFA using TOTP is supported by default when using ASP.NET Core Identity."
Although the default does not include QR Code generation it can be added according to the following Microsoft document:
Enable QR code generation for TOTP authenticator apps in ASP.NET Core
The result is shown blow:
The first document shown in your question is for .NET Framework version ASP.NET Identity. Use of e-mail and SMS for 2FA is no longer supported in the project template for the ASP.NET Core App.