If you add a little context there, it will be clear that they both say much the same thing.
1) When we were children we used to go to school together. 2) When we were children we would go to school together.
To refer to repeated actions and events in the past, both 'would' and 'used to' can be used, but only 'used to' can refer to past states, e.g. I used to have a BMW