But you cannot say that homosexuality is ok and speak for God, so the fact that he said so proves that he doesn't.Being the leader of the Catholic Church doesn't mean you speak for God, that's not what his role is. An infallible statement doesn't mean you speak for God either - it just means that, when pronounced, it cannot be wrong.
For instance, here's an infallible statement: "A bachelor is an unmarried man." I can say that without speaking for God.
When I quote he Bible which says that you shall not lie with a man as with a woman then I speak for God because I use the same words that God uses.
Which of course means that your pope is wrong because he opposes God, and what he says is contrary to God's decree.