If you fail an elective I am pretty sure you will have to repeat it until you pass. I do not think you can substitute it with another unit.
But think about it realistically, if you have a fail on your transcript and there is no evidence that you attempted the course again it doesn't look...