I had this same observation a few weeks ago. Salesforce has been pushing hard for orgs to migrate from their shotty programming language (apex) to their visual programming language (Flow).
My observation was that apex is better positioned to take advantage of the future of AI programming tools due to being a simple Java based language with high level of abstraction.
At some point this will flip the equation and it will be easier for non-coders to manage the code than the visual graphs.
Salesforce is building AI tooling for their flow platform, but I don't think they will be competitive again the billions being invested in solving general programming / SDLC with AI