You can use solution 2, but don't seal appliance flexible drain pipe to the rigid stand pipe.
If you did seal it you would run the risk of syphoning the water out of the machine, and / or out of the trap of any other appliance / sink connected to the same run of drain pipes.
If you did seal it without a trap (U bend) you run the risk of sewer smells getting back into the washing machine.
If you did seal it you would run the risk of syphoning the water out of the machine, and / or out of the trap of any other appliance / sink connected to the same run of drain pipes.
If you did seal it without a trap (U bend) you run the risk of sewer smells getting back into the washing machine.