I'm not aware of any control over what gets backed up.
I'm assuming that all of my local work would be lost. But I'd still have the sixteen million duplicate photos.
iCloud's priorities are not a great fit for preserving my source code repos. Fortunately those aren't very big.
But when my son's Mac dies, his huge Logic Pro projects are toast. And he is a few thousand miles away now.