Small accidents can, as in other countries, be settled between the parties. However, in both major and minor accidents, the police clean up. A good advice, take pictures to preserve evidence.
The Spanish part has a tend to be heard by local police and court if you do not have evidences that support your explanation.
We are Spanish lawyers specialized in foreigners.
What to do in case of an accident in Spain?