Kemi Badenoch accused the Scottish Government of confusing sex and gender during her first visit as leader to Scotland.