Photography and painting are two entirely distinct art forms.
We are currently at the point equivalent to when photography was just appearing (so to speak)
As for today, we are discussing distinct means of producing the same thing: software. Painting remains because photography was at most displacing a subset of the field. Generative AI writing software may be displacing an entire profession.