What exact KTM bike model is it it for ?
You are correct that any of these engines you mention all have the same physical dimensions and mounting holes BUT their electrics are different (stators and flywheels) ... so it is best to try and find the same engine that came out of your bike unless...