I think in this analogy the dynamic programming language would actually be, like, OneNote, because while you have to jump through hoops to properly embed images and stuff in Word it’s pretty easy in OneNote. Plus you can easily do things like add sketches or videos or sound files or arbitrary reorganize the position of the text.
For longform writing? Yeah, Word is better than OneNote. For preparing a talk or presentation? I vastly prefer OneNote.
tl;dr analogies are hard.