Dynamical systems and forward–backward algorithms associated with the sum of a convex subdifferential and a monotone cocoercive operator