That is an opinionated question. So this is my opinionated answer.
Do you think AI will replace software developers? If so, when?
I believe someday (in a very distant future) AI will replace mostly all the jobs. But before that happens, we will work side-by-side with it (as you cited Github Copilot).
Any answer about WHEN is a blind guess. And for technology impact guesses, I like to follow Amara's law, which states:
We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run. - Roy Amara
So I would guess it won't completely extinguish programmers job in the next 10 years. During this period, it will only create opportunities for new programmers (like you) as everyone will need to develop a new set of skills.
The demand for technology is rising worldwide. We are already short of human-resources and projections shows this gap tends to grow.
If you had to chose a job in IT that most likely won't be replaced by AI, what would it be?
Probably something that doesn't exist yet.
Until we don't have an AGI, probably those jobs that combine multiple skill, with high-cognitive tasks. So the interface between business and IT is gold. Understanding the user's real problem, with empathy, creativity (and powered by data and Machine Learning) before coding.
Some examples are: Project Managers, User Experience, Data Science.
But remember: Most professions today didn't exist in the last 20 years. When you think about technology, 10 years is enough to drastic changes! So don't mind aiming, it's a moving target!
Just follow the direction you love, keep adapting, keep moving, keep learning. And before a robot takes your job, you'll be using them to create something you could never dream make by yourself!