Comment by zepolen
You don't seem to have gained his respect with your engineering skills.
Publicly challenge (and beat) him in a small engineering contest, otherwise he will never respect you.
Make it time limited, eg. 3 hours to implement a specific goal with clear indicator of what is "better" as a score, ie. to avoid arguments that eg. "mines fast, mine scales". Have a neutral party pick the challenge.
This will solve nothing. Best case OP 'wins' ands the competent jerk becomes even more difficult, worst case OP 'loses' and loses any authority.
OP is being too nice. He is the team lead. His job is to lead, ands sometimes leaders have to be direct and harsh.