How does the law of conservation of matter apply to chemical equations?
It applies absolutely:
If I start with
See this old answer.. The idea of mass equivalence is a very important one, and as chemists we should always strive to optimize our yields. Of course, we are never going to succeed.