If you ever do have the spare time to experiment:
I don't know if the motors are the same capability (power, speed (kV), etc), or what wiring either uses (sensorless, hall sensors, etc), but IIRC the Xiaomi M365 uses pneumatic tires.
Something that is fairly common on ebike hubmotors is that the "generic" DD versions use the same rotor diameter (probably using the same steel pipe size to cut the rotor rings from), so you can often swap rotors between different brands/models of motor, meaning you can then "upgrade" your bike without replacing the whole wheel, just the core. (assuming the side covers of the old rotor will hold the axle, etc, and clear the new stator, etc).
If the same is true of the scooter DD hubmotors, you may be able to just take the rotor (which includes the rim) off the M365 (or whatever) wheel and put it on your stator in place of the solid-tire version you have now.
Unfortunately the measurements you need to find this out are not typically available, so you would probalby have to buy a motor of the type you want to use and just try it.
It's likely easier just to go ahead and try the new motor as-is first, so I'd do that before swapping parts around, and hten if it doesn't perform as expected, then try the rotor swap.