“Teacher, what is the greatest commandment in the law?”
“Love the Lord your God with all your heart, all your soul, all your mind, and all your strength, and love your neighbor as yourself. This is the Law and the Prophets.”
The confusion arises when people think “love” means “do sex upon,” and it’s a problem whether the object is the same sex or the opposite sex.