You need ghee to set the barfi. Barfi will not set if you use oil. One of the closet substitute that I can think of is coconut oil, however I have never tried it so I cannot say about the texture of barfi. But for sure, the barfi will have a strong oily coconut taste.