Depending on the length of the flight, I wouldn’t want to be in a seat between a kid and the aisle because I din’t want to have to get up every time they and their adult have to pee.
Conversely, I’ve been in a position where I was in the window seat next to two parents and their sleeping newborn. I held it as long as I could, but that kid did not go back to sleep after I asked them to get up so I could pee.