for mathematics I can see where it would be demotivating to have some bot just brute force a theorem you were hoping to be the first to prove via some elegant mathematical arguments. however when it comes to software I strongly feel that the universe of problems people would like a computer to solve is vastly greater than the amount of software available, and AI is doing nothing more than helping us make a bigger dent in the pile. I might be biased because most of the software I use and care about is open source, but I cannot think of a single example of software dying simply because some other software did a similar thing first. it's usually the most user friendly or polished or accessible program that ends up winning mindshare even if it wasn't the first to be developed, and even more than that, a software niche with a clear "winner" will still have tons of less popular alternatives that have their own loyal userbase because it fits those people's needs and desires better than the more popular one does.
which is all to say, if you have a nice idea for some software go ahead and build it! at the very least you can have it fit your needs way better than what some random person on the internet has already put up on github.