Disclosed are a water path structure of an upper cover of a water injection groove of a washing machine, and a washing machine. The water path structure of an upper cover of a water injection groove of a washing machine comprises a waterflow passage (1), a water inlet (2) and a water outlet (3) being in communication with the waterflow passage (1), a stop rib (4), and an overflow port (5), wherein the stop rib (4) is provided in the waterflow passage (1) and is located between the water inlet (2) and the water outlet (3), and the overflow port (5) is in communication with the waterflow passage (1) and is provided below the stop rib (4). Water enters the waterflow passage (1) from the water inlet (2) and then encounters the stop rib (4). Because of the resistance of the stop rib (4), some of the water flows out from the overflow port (5), and the remaining water enters a compartment (91) via the water outlet (3).