What's the difference between "substitute for" and "substitute by".
Thanks in advance.
The brown dog was substituted for the white dog. It replaced/was exchanged for the white dog
The white dog was substituted by the brown dog. It was replaced by the brown dog.