The Yang-Baxter equation, or rather one given solution of the Yang-Baxter equation corresponding to some model is often described as the fundamental relation defining an integrable model. However in the construction of the transfer matrix of the XXZ spin chain or equivalently of the 6-vertex model, which can be found e.g. here or here, the Yang Baxter equation for the $R$-matrix is deduced as a compatibility condition for two reordering of a product of three monodromy matrices to be equivalent (see for instance (B.39) in Franchini 2017), and is not even a necessary condition for the $RTT$ relation to hold, and thus for the transfer matrix to commute.
Thus, I fail to see, in this elementary example, why is the Yang-Baxter equation (understood as the relation between two products of three $R$ matrices) so fundamental in integrability.