Themes designed for the Editor, such as the Twenty Twenty-Three theme, come with various Template Parts (such as a Header, Footer, and Post Meta) and Templates (such as Home, Index, Search, 404) for various pages.
What is the correct way to manage these Templates and Template Parts to reduce the chance of issues when the theme is updated? Is it safe to edit these Template Parts and Templates directly, overwriting the ones that come with the theme? Or should I make copies, edit those, and then use the copies for the various pages? Or is there some other approach that is better?