Certainly, you can substitute either ingredient based on your preference or dietary needs. For example, you could use butternut squash or regular potatoes in place of sweet potatoes. Similarly, if you're not a fan of mushrooms, you could use other vegetables like zucchini or eggplant. However, keep in mind that substitutions will change the flavor and nutritional profile of the dish.