I'd fit the old hose to the new machine.
This will either work, or fail spectacularly.
It depends how advanced the new hose is. If it has electrical contacts running through it, you need to keep that hose as there will be a solenoid which is activated / opened by the washing machine sending...