I’ve replaced the dishwasher a couple of times. In each case it came with a long flexible hose. The instructions were quite clear to hang the middle of the hose a certain minimum distance up to prevent backflow. On the 2nd one, there was a hook on the side to hand a cord around the hose to hold it up properly. No way could gravity be used, nor should it. There’s definitely a pump.