edit: never mind i had somehow missed the GIMP Python extensions. So extensibility is not a point in favour of Krita, though looking at both APIs, I prefer the Krita API though that’s subjective
GIMP 2.99.x (future 3.0) is shipping with support for Python, Script-Fu, Lua, JavaScript, and Vala as languages for extensions.
The last time I used Gimp, the Gimp Python extension was an optional module that wasn’t included in the build I had But it’s been a while clearly and I missed it. I’ll edit my prior comment