Hermaphrodite is the scientific term (usually used for animals) for a species like snails or certain types of geckos and fish that have both ovaries and testes. intersex refers specifically to people who were born with a non-standard set of genitals (ie has a penis but also has breasts, or has a vagina and no breasts) but its often used as a catch-all in porn for anyone with something other than "just a penis and testicles" or "just a vagina and breasts"
it would just be semantics if people hadn't started using them as slurs, but they did :/