Got into an accident? Should you repair or scrap your damaged car?