This is just a partial answer to your question but:
I actually discovered something today. Components have a boolean “Is Editor Only” property. If it is set to true, it will be excluded from cooked builds. This does exactly what we want (at least for components).
I hope we will get the same for actors and objects as well