Consider $\mathfrak{g}$ a Lie algebra, its derivated subalgebra $D\mathfrak{g}=[\mathfrak{g},\mathfrak{g}]$, and the quotient Lie algebra $\mathfrak{g}/D\mathfrak{g}$. To understand why the quotient algebra $\mathfrak{g}/D\mathfrak{g}$ was abelian, that is $[\mathfrak{g}/D\mathfrak{g},\mathfrak{g}/D\mathfrak{g}]=0$, I had the following hand-wavy argument. Every element in $\mathfrak{g}/D\mathfrak{g}$ of the form $ab-ba$ for $a,b\in\mathfrak{g}$ is identified with their commutator $[a,b]$ which is in the $0$ equivalence class in $\mathfrak{g}/D\mathfrak{g}$, and therefore one can write $ab=ba$, that is $\mathfrak{g}/D\mathfrak{g}$ is indeed abelian.
However, I realised this doesn't work; multiplication isn't defined in a Lie algebra, and therefore one can't make sense of an element like $ab$; this could be understood as an element of the universal enveloping algebra $U\mathfrak{g}$ of $\mathfrak{g}$. Therefore, the picture I had of $ab=ba$ doesn't work. This leads me to the following question;
My question: how to think of elements of an abelian Lie algebra if the naive picture of $ab=ba$ for $a,b\in\mathfrak{g}$ doesn't works; does the interpretation of abelian Lie algebra will depend on the Lie bracket chosen?
This question is quite closely related. While it asks about the meaning of the commutator bracket, I am concerned with the notion of abelian Lie algebra, and if its interpretation is related to the Lie bracket.