If you want users use the same password , you should enabling the synchronization of password hash before disabling the directory synchronization. If it's the case the user will able to resuse the same password when his Entra ID account will be converted to cloud only.
Please don't forget to accept helpful answer