Some interesting points on this comparison in the Roof threads last year. One of the comments, the way I read it, was that the KTM's nowadays take much more effort and money to get "Roof Ready" than the YZ250X. This might be more relevant to faster riders than the weekend class.
Out of interest, why would you say this? If you weigh more than about 85kg, you will need to work done on the suspensions of both bikes, but the YZ probably has a better standard suspension.
The YZ will need the same after-market protection as the KTM (pipe guard, back plate, hand/lever protectors, etc.). The standard chain guide on the Yamaha needs to be replaced, and as mentioned previously, it is trickier to install a fan, as the YZ has no battery. If I had another YZ, I would also add a linkage guard, which you don't need with a PDS suspension (as on KTM, but not Husky). The KTM also has a big advantage in having an electric leg. Believe me, there are times where you need this.
So in terms of price, the YZ is a winner, but about the same amount of preparation is need to get it race ready.