It has always been confusing learning Lagrangian mechanics from physicists, since their notation $\dot{q}$ is so abusive (it can mean both an independent variable, tangent vector on the $T_{q}M$ or $\frac{d}{dt}(q(t))$ and this makes you think if the E-L equations must have some chain rules that takes the potential implicit dependence of $\dot{q}(t)$ on $q(t)$ as some chain rule expression)(Related: Why does $\frac{dq}{dt}$ not depend on $q$? Why does the calculus of variations work?)
Anyway, I learned the meaning of the results, but one thing upsets me is that it seems the main tool to deduce Newton's law is the fact that $\frac{\partial}{\partial q}$ and $\frac{\partial}{\partial \dot{q}}$ act as operators that can ignore the other variable to turn your expression, in this case Lagrangian $L(q, \dot{q}, t)$ (all variables independent), to match with the terms of the Newton's law $\frac{d}{dt}(m\dot{q})(s) = -\frac{\partial U}{\partial q}(s)$ and $\frac{d q}{dt}(s) = \dot{q}(s)$ (Here functions $q(s), \dot{q}(s)$ have potential dependence of course)
The simplest example is $L = \frac{1}{2}mv_y^2 - mgy$ for an object that is projected vertically to get the usual equations : $\frac{d}{dt}(mv_y) = mg$ and $v_y = \frac{d}{dt}y$ .
My question is that, this approach seems so "cheap" in the following sense. Ofc I can turn many expressions with two variables into two equations if I have operators that kills the other one and take a single derivative of my desired variable. To put into a more concrete question, why is the following function on the tangent bundle (say for a one-dimensional manifold) not as important as the Lagrangian for the purpose of re-formulating Newtonian mechanics:
$$M(a, b, t) = \frac{1}{6}mb^3 - U(a)$$ and in the $M-$theoric reformulation of mechanics, Newton's law reads: $\frac{d}{dt}(\frac{\partial^2}{\partial b^2 }M) = \frac{\partial M}{\partial a}$ and $\frac{da}{dt} = b$ along with the boundary conditions. Is it the case that all functions of tangent bundle, call it $M$ again, that can admit its own $M-$theoric " Newton's law " are equivalent logically for the purpose of formulating Newtonian mechanics, but the main importance of Lagrangian , i.e $M = L$, is that it has lowest degree (unlike my example which required taking taking second derivatives ) and has interpretations like being the derivative of some functionals? Note that, degree of derivatives required also shows that there is not a proper dimension for $M$ (but this doesn't seem to cause mathematical difficulties)
If so, in practice no one calculates those functionals I think, unless they are easy to interpret. Moreover, if degree of derivatives is the main reason, why not consider $M = T + V$ (which is a function of $(q, \dot{q}, t)$ not $(q, p, t)$ unlike Hamiltonian) with its own $"T+V"-$theoric formulation of Newton's law. In this case, such an $M$ also has interpretation as the "energy" of a point on the tangent bundle.