Replacing either drive is difficult as the iMac must be disassembled, as you're aware. Once inside the machine though, the SSD and the HD of the iMac are simply connected to the logic board with cable or slot.
The "fusion" part of the process is all done in logic by the macOS... magically! 😉
When you physically replace either drive, the fusion of the two is split. A split fusion drive can be fixed using Terminal app, but it's a chore. Once the fusion is split, either drive may be accessed by the OS as an independent drive that you can erase, format and reload as you wish. Of course, you will need a bootable macOS installer or a bootable clone of a working macOS drive that you can use to reinstall the OS on your new drive.
I agree with Jack-19 that it's easier to simply use an external SSD as the startup drive for the iMac, and ignore the internal fusion drive setup.