Not to mention that Martin had essentially planned all this in advance, having exactly what he needed to most likely spare Jon either a worse leg injury, or being absolutely consumed from the worms in his leg.
Martin is cunning and acts well under pressure. If he had more confidence in those abilities, he would genuinely make a good leader, but is held back by people pleasing tendencies that he loses later on (and man, do you love to see it.)
It's worth pointing out that Jon's way of doing things isn't entirely without merit. Because Jon acts first and thinks later in a lot of these cases, he's often the first responder. In the case of Daisy, his willingness to throw himself into the coffin with half a plan was foolish, but most likely saved her life. Any longer down there alone without someone to keep her tethered and she could have been lost forever. Everyone else sat on their hands, but Jon acted, and Jon saved her. And, in turn, Martin saved him.
Same with the Lonely. He had no idea what would be waiting for him, or if he could manage it. But everyone else who wasn't busy fighting the Hunters sat on their hands, and Jon acted. And Jon saves Martin.
It's one of the reasons I think they work so well. Jon needs someone to keep him grounded and pick him up when he inevitably falls on his face, but Jon is the one charging into dangerous situations and ultimately does help people, even if that help was used against him by Elias.
It's sort of solidified to me in this moment in particular, with Jon ready to throw himself into the Eyepocalypse:
Jon was just ready to just bolt out the door, and Martin had already packed the go-bags knowing Jon would eventually come around to charging into the unknown.
Idk how to end this. I am clearly not well about them. Martin is cool af, especially in season 5 and I will die on that hill.
And Jon, while impulsive as all fuck, isn't a helpless child screwing everything up. Even if Jon's actions served Elias's needs, Jon still helped people. A lot more than people give him credit for.