Both are reasonable, but students who chose between them usually describe Mandi as the stronger electrical option. One student who had electrical offers across the second-generation IITs, including Jodhpur, picked Mandi for four reasons:
The tradeoffs are the ones that come with a remote hill campus. Travel takes longer, city exposure is limited, and winters can be hard on some students. A different commenter argued that if you can get a branch at an older IIT, that is usually a better pick than electrical at a newer one, unless the newer IIT offers computer science. That advice applies when you actually have such an alternative.
These are personal accounts and should not be treated as official comparisons. My advice: look at the electrical department's course list and research areas at both institutes, ask about recent placement and internship results, and speak with current students. If electronics research and course flexibility matter to you, lean towards Mandi. Visit Jodhpur's department page before finalising your choice.
My brother was able to get EE in all the second-generation IITs except Indore and Gandhinagar. Despite various options, he chose IIT Mandi after considering a number of reasons stated below.
Ultimately, consider your personal preferences while making the final decision.