In 5th ed, some elves are born with the ability to change gender at each long rest. No girdle needed.

Also, someone might tell Wyll that devils don't have gender they just assume the gender they think is mostly likely to get the response they are after.