Before I respond to your question, Neo, I want to put it out there that I would argue that it may well be impossible for anyone, Jesus or anyone else, truly to “sin.”
“Sin” pretty much implies doing something that offends a GOD"or something that defies the dictates of a GOD.
By that definition, if there are no GODS...nobody is ever sinning.
Even if there is a GOD...I can easily magine the GOD would not set up rules...or have items of human conduct that would offend or please IT. So in that case, no sinning could occur either.
If there is a GOD...and if the GOD has expectations of humans and if there is human conduct that would offend the GOD...or run counter to what the GOD says offends IT...anyone doing those things would be sinning.
Of course, if you define “sinning” as disobeying what a person THINKS to be the will of a GOD the person THINKS exists...or doing something the person SUPPOSES to be a thing that offends a GOD the person THINKS exists...then you have a different cup of tea. Sinning can occur under those circumstances.
Apparently, Jesus was convinced that the GOD of the Old Testament DID EXIST...and that the rules the GOD supposedly gave to Moses...actually are the RULES OF THAT GOD...and that the things the god said offended IT...actually offended IT.
Since that is so...and if the many Christians who claim the teachings of Jesus make homosexual conduct acceptable are correct...
...then Jesus DID sin.
By teaching that one should show compassion, love, and empathy for homosexuals...if in fact he did...he was teaching that it is okay to offend the GOD.
That seems to be sin.