With so many different methods just to learn new things, understand that there are similarly many ways to actually do basically anything. If you have listened to writers talk about their writing process, there is a world of variety. People write in the morning or right before bed. Some people have a specific start time and others roll. Some have a strict end time and others go until they run out of steam. Some are in nature and others indoors. Some have background noise which also comes in a number of varieties) and others are in silence.
I bring this up to remind writers that nobody can tell you what will definitely work best for you. When people give advice, they are usually just telling you what works for them. But different people work differently. Consider their advice as a technique to try out, but by no means a universally true method.
And remember that this is just as true for what you write about and how you write it as it is for where and when you do it.