If I’m getting this correctly, you want to display the sub pages (children) only if you are on that parent page.
with the wp_list_pages you should be able to exclude the sub pages by setting the depth to 1. But to set it up by parent, I think you will need an if statement and will have to do it in your sidebar template.
maybe someone else will have a better solution.