At university and several online searches (Difference between latch and flip-flop) I have been taught that the difference between a latch and a flip-flop is that the latch is level triggered while the flip-flop is edge triggered.
However, when examining the datasheet of the 74HC595 (8-bit shift register with output latches) I have read that they name the registers forming the shift register flip-flops and the registers forming the output register latches (SHCP is Shift Clock and STCP is Storage Clock):
However, when observing the function table, both are triggered by a rising edge:
Even the timing diagram portrays the latch as edge-triggered:
What is the difference between a latch and a flip-flop then?