The New ROM you're flashing is basically replacing files in your Systems and Vendors partition.
When I'm doing a clean flash, I do a backup, in case something goes wrong, Format Internal Storage then wipe Dalvik, Cache, System, Vendors. Then I flash the new ROM
Sent from my Redmi Note 8 using...