I am not an Apple fanboy, but tired of having bad experiences mixing mainboards, sound cards, and so many more problems and problems, I ended up buying a Mac Mini M1 (2020) with minimum specs.
I would probably not recommend Apple/Mac for other tasks, but for music production I do, and you even have a free DAW and instruments included (GarageBand), which is a very good software, included in the price you pay for having Apple MacOS computer.
I am not using GarageBand, nor AU plugins (for Logic Pro, cheap DAW), but instead I am using Reaper and VST3, due to unknown future compatibility, and unknown future Apple prices, so if I may be going back to Windows in the future, at least I am not closing too many doors.
I find my Mac Mini M1 (basic specs) working great for music production, at least now, in late 2022, with Apple Silicon support widely extended, and on-board sound card with low latency.
The M1 is not a rocket, but it is the best I've ever had for music and it pays itself overtime due to the low power consumption, another reason why I bought it.
It works like a charm with Arturia instruments now and a lot lot more I have tested. I have only found somehow limiting CPU when I ran through several layers of UVI WorkStation, but I have other projects with lots of Waves effects and plugins, and Arturia, AAS or Korg VST's.
I had several crashes with latest Ableton Live 11 Suite (demo) for Apple Silicon though and I stopped testing Cubase after disgusting installation process and mouse pointer covering mouse hover tips and hints.
I am satisfied with Reaper and external instruments and effects, and it is just $60 if you're almost not making money. I tested Reaper much much longer that the license allows but I had no limitations anyway. I decided to pay for it just so it becomes better and better. I am all-in with Reaper now.
Also if you use modelled instruments VS sampled instruments you will save a lot of hard drive space requirements, so the lightning fast SSD included would be great.
May be you could find problems getting used to MacOS, but overtime I made that step myself, so I find my way of doing things and it's just working.
I also find the big Trackpad (touchpad) used in MacOS very helpful to swap between screen desktops while you're browsing, using the DAW and tweaking sounds. 3-finger swipe left or right and you're where you want without touching your keyboard.
I just went for MacOS and iPad due to recommendations by more experienced musicians, although I was very proficient in Windows already.
I wanted to avoid the chaos of picking bad combinations which always happened to me with Windows and several brands, even the good and expensive ones.
Apple has several issues too though, but it's working, and MIDI over bluetooth was in Mac like 10 years before now that I think it is also available in Windows (but who knows if it is working).
I think it also depends on the DAW you're going to use and if you're paying for the software or temporarily grabbing it from somewhere else.
If you plan on using connecting microphones or real instruments may be you should also consider an external audio interface, like those from Arturia (I am using a cheap Audient EVO for casual and it's working very well anyway, although most of the times I don't need to even plug it in and use just the keyboard and the onboard audio jack).
For what I have read, latencies below 13ms are good enough to be used without noticing it. In fact, bands and musicians in-stage can have higher latencies caused by the distance to the speakers, so really, don't try to go looking for below 1ms latencies spending thousands bucks.
I hope this helps you.