People sentenced for similar offences are more likely to offend after a short prison sentence than if they had been given a community sanction.