Earlier quoted context omitted.
The Chinese invented cannons about the time they invented gun power. However by coincidence their forts used stone walls thick enough to resist cannon fire and so it was not really better than the various catapult systems they also had (which also couldn't breach their fort walls). https://acoup.blog/2021/12/17/collections-fortification-part... Goes into this in more detail for a couple paragraphs.
Shooting in steep trajectory, howitzer style, would still be valuable.
My guess is there’s probably a whole bunch of neat things we could build with existing manufacturing tools, that we don’t yet know are even possible, and which the future will have similar discussions about.