I read the opinions here above and I think they are good and accurate opions.

Here's my 5cents.
I sold my BMW 1100 GS which was developed (a lot)

to eventually become the 1200 GS.
Used mine on anything from long tours, really bad Lesotho roads and even included laps on Zwatkops and Kayalami racetracks...
Did 60 000km on it without a single issue whatsoever.

Reason I sold it? Well it was so good at everything that it actually became boring. That being said, for any bike to be able to do everything pretty well, it mast be an amazing bike.

BUT always keep in mind that altough the BMW is good in all respects, it's far from perfect for any specific applications, so there is always a compromise...
I do think the KTM may be abit of a sharper tool and a little more focused = exciting??

However as said by others, for your purposes the BMW will undoubtedly satisfy.