In his book Quantum Field Theory and the Standard Model, Matthew D. Schwartz derives the Lagrangian for the massive spin 1 field (section 8.2.2). In eq. (8.23) he finds this to be \begin{align} \mathcal L&=\frac{1}{2}A_\mu\square A^\mu-\frac{1}{2}A_\mu\partial^\mu\partial_\nu A^\nu+\frac{1}{2}m^2A_\mu A^\mu,\tag{8.23} \end{align} where $\square = \partial_\mu\partial^\mu$. In the very same equation, he equates this to the Proca Lagrangian \begin{align} \mathcal L=\mathcal L_\mathrm{Proca}=-\frac{1}{4}F_{\mu\nu}F^{\mu\nu}+\frac{1}{2}m^2A_\mu A^\mu,\tag{8.23} \end{align} where $F^{\mu\nu}=\partial^\mu A^\nu-\partial^\nu A^\mu$.
I fail to understand however, how the first Lagrangian can be rewritten to this Proca Lagrangian. My attempt was to rewrite the first term of the Proca Lagrangian into something that resembles the first two terms of the first Lagrangian above. It involves the product rule \begin{align} -\frac{1}{4}F_{\mu\nu}F^{\mu\nu}&=-\frac{1}{4}(2\partial_\mu A_\nu\partial^\mu A^\nu-2\partial_\mu A_\nu\partial^\nu A^\mu)\\ &=-\frac{1}{4}(2\partial_\mu[A_\nu\partial^\mu A^\nu]-2A_\nu\partial_\mu\partial^\mu A^\nu-2\partial_\mu[A_\nu\partial^\nu A^\mu]+2A_\nu\partial_\mu\partial^\nu A^\mu)\\ &=\frac{1}{2}A_\mu\square A^\mu-\frac{1}{2}A_\mu\partial^\mu\partial_\nu A^\nu+\frac{1}{2}\partial_\mu(A_\nu\partial^\nu A^\mu)-\frac{1}{2}\partial_\mu(A_\nu\partial^\mu A^\nu), \end{align} having applied some relabelling in the second term of the final expression. The first two terms in this final expression are the first two terms in the Lagrangian, but then I'm stuck with the final two terms. Could someone explain to me what I'm missing here?
Also, the equation of motion for the Proca Lagrangian are \begin{align} (\square+m^2)A_\mu=0\tag{8.18}\\ \partial_\mu A^\mu=0. \end{align} Substituting this in the first Lagrangian would make it vanish. How does that make sense?