If the camera was capable of deciding how to frame the images, how to stage them, what lighting was required, how to edit them after taking them -- yes, professional photography would be dead. Hobbyist photography may stick around for people that value humanness, but photographers wouldn't be commercially relevant. Just ask the camera.
AI isn't a better keyboard. The goal is to automate the decision making.
There is a lot of variability in photography and there aren’t hard rules for deciding what makes a “good” photo. A good photo comes more from selecting a subject, in a particular environment, etc.
> capable of deciding how to frame the images, how to stage them, what lighting was required, how to edit them
This is all possible now. I don’t think it’s dead (yet), but it’s certainly becoming more weird and artificial.