Introduced in macOS 15, pinning files in iCloud Drive gives you the best of both worlds, as you can evict files to save space, and pin those you want to keep downloaded. But be careful when pinning folders, as they behave oddly.