In a divorce what happens to the primary residence if multiple adult family members are currently living in it?

So kicking out your children when they turn 18 is a “no-no”?

I vaguely recall some case from a decade or two ago where a couple in NY had to go to court to get their adult son out of their house.

I assume the short answer is - it depends on the state or country.