Bhagavad Gita 3.35
श्रेयान्स्वधर्मो विगुणः परधर्मात्स्वनुष्ठितात्।स्वधर्मे निधनं श्रेयः परधर्मो भयावहः॥
śreyānsvadharmo viguṇaḥ paradharmātsvanuṣṭhitāt |svadharme nidhanaṃ śreyaḥ paradharmo bhayāvahaḥ ||
Better is one's own duty, though devoid of merit, than the duty of another well discharged. Better is death in one's own duty; the duty of another is fraught with fear.
It is better to do one's own duty, however lacking in merit, than to do that of another, even though efficiently. It is better to die doing one's own duty, for doing the duty of another is fraught with danger.
Our plain-language meaning of this verse is waiting for scholar review.