Astana said: ... would this count as masturbation, if they end up having sex?
Its not incest or selfcest, its inbreed. Inbreed is to breed, reproduce, or mate with those that share closley related traits and common interests, or "genetically" related parents.