My MSYS installation has a few Mingw shells:
What is the difference between the regular MINGW64 shell and the UCRT64 shell?
Please take a look at the following guide: https://www.msys2.org/docs/environments/
The default MINGW32 and MINGW64 environments build binaries using the older MSVCRT library that should be present on all Windows systems.
The MINGW UCRT environments build binaries using the newer UCRT library that is only known to be present on Windows 10. It should produce binaries more compatible with MSVC-compiled binaries, but not with the MSVCRT environment.