And that's how/why MSYS2 is a nice alternative to Cygwin, especially its environments that use UCRT instead of MSVCRT when considering "compatibility" from the perspective of building and shipping software that doesn't require the user to first install a special environment/runtime. UCRT ships by default on Windows 10.
As a shell environment I like cygwin. With posix compatibility I can compile nearly everything (that does not use libuv).
I do not get the narrative of complicated setup for this use case. Download installer and click next a few times: does not seem to be so difficult. The cygwin package installer IMHO is a bit easier to use than pacman.
There is still msys, if you want more windows. I think git bash mostly is only a packaged msys distribution, isn't it??
MSYS2 is the better option, and is not "MSYS version 2", it's an independent rewrite.
> git bash mostly is only a packaged msys distribution, isn't it?
It's in parts based on MSYS2, but doesn't give you a "full install" (or whatever is the best way to phrase it).
Cygwin has a more complex setup and not great compatibility with windows executables, IIRC.