“Even when imperfect, one’s own dharma is preferable to another’s dharma carried out well. Death in one’s own dharma is preferable; another’s dharma brings fear.”
Going deeper
3.35 sets one's own duty beside another's. It says one's own duty, even if done poorly, is better than the duty of another done well. It then says it is better to die performing one's own duty, and that the duty of another is full of fear. The Sanskrit words are svadharma and paradharma. The verse before, 3.34, says each sense has a fixed attachment to and aversion for its object, and that one should not come under their sway, for they are enemies. Right after, at 3.36, Arjuna asks what impels a person to sin even against their own will. Near the end of the Gītā, 18.47 opens with the same Sanskrit line and adds that one who does the duty ordained by their own nature incurs no stain. Read the verse in chapter 3, and see what the Gītā says about dharma.