If you're going to Jaisalmer by road, it's well worth a detour to Osian to see the stunning Hindu and Jain temples, many of them dating as far back as the eighth century.
It is undesirable to take a detour to Osian.