Conservation of angular momentum can be visualised in a playground by watching how kids slow themselves spinning by shifting their centre of mass outward on those spinning poles.
On a sailing vessel the principles are the same but you're not rotating continuously you're oscillating like a pendulum. Polar moment of inertia is the term used in vehicle dynamics but dynamic oscillation of sailing vessels is less well understood.
While you could in theory dynamically balance your vessel by changing its mass moment of inertia you are subject to somewhat random frequency and amplitude inputs in a real ocean making it a tail chasing exeecise. You already have sails with near infinite adjustment. When you've dropped all canvas you are left with the vessels design and configuration.