You'll need a custom-built distro image, but that goes for like 90% of ARM hardware on Linux.
The CPU of Ryzen is better than that of DGX Spark, especially for modern programs that have been updated to use AVX-512 (i.e. it has a significantly higher multithreaded performance).
Only for GPU applications the NVIDIA system is likely to be better.
Difference is on the Spark you can use and learn CUDA, vLLM, SGlang etc which is the industry standard.
I bought mine (ASUS version) back in December with the intent to learn that stack of stuff. I've been on and off with it but it seems to have paid off, looks like I might be getting work in the inference serving space.
[1] https://www.microcenter.com/product/699008/nvidia-dgx-spark
For anyone considering these devices, the only reason I would recommend against them is if you plan on getting multiple to link together - the DGX Spark has a much, much faster interconnect bandwidth ceiling than the AMD devices do.
Otherwise, they're great!