Overload protection normally uses thermal replica to measure the thermal state and determine if an overload condition is occurring.
Equipment normally has a rated current carrying capacity. If this is exceeded then the equipment can start to heat and if left unchecked can cause insulation failure.
If the current is overloaded for long periods, the thermal state rises and once it reaches 100% the relay operates. If the current falls below the rating, the thermal state starts to gradually fall.
If you had a situation where the equipment was overloaded for extended periods, but not all the time, the thermal state would be rising most of the timem but then falling for short perios. However the relay would eventually trip once the termla state of the equipment approached it's limits.
Now, if you used an overcurrent relay for the same situation the relay would pick-up as the current rose above the rated value, but once the current fell back below the rated value the relay would reset, and would need to start again. The thermal limits of the equipment would have been reached well before the relay operates and damage will have occurred.
An overcurrent relay may clear an overload condition, but that is not the purpose of this protection. It is there to clear faults, rather than overloads.
I do hear people use the term overload protection for when overcurrent relays are used, but this is not correct.