When you truly think about it - you realize that creating better organism than us is singularity towards which we are inevitably going.
I don't think it results in the end of humanity though. If our creation is good - it will mean infinity more agency for humans compared to today. It's just that machines will take over spearheading the expansion of consciousness.