Yep. If you don’t want your kids dealing with this indoctrination gambit, the only way is to take them out of public school.
I will inform my kids that if they have this type of assignment, they are NOT to form a family with 2 male parents or 2 female parents.
If they are led to do so, they will inform the teacher and the class that it is in violation of their religious beliefs and they refuse to accept that as a possible solution to the problem.