dag: Always select the top-most commit