This process is called a clean install, which is ironic as there's nothing particularly clean about it: Microsoft has enshittified Windows Setup.
Own a Samsung TV? My 5-second 'cold boot' trick makes any system run like new again ...