Regret of failed race move, how to learn and move on?

Very often at road races when you have a group finish, 1st and 24th are literally sometimes separated by only 3-5 seconds or so. For those races winning is mostly a function of positioning. If you are boxed into the field, you literally can’t make a move (at least not without endangering others).