The gradual replacement approach (as you describe it) is a useful thought experiment that gets people more comfortable with the possibility of mind emulation but the end state is the same for both approaches. One just intuitively feels more you than the other, but as you said, it's likely all an illusion so doing it while you "sleep" is probably enough to make you sufficiently happy to be alive when you wake up non-biologically.