On gradient flows with obstacles and Euler's elastica. (March 2020)