Slice and Brown the Zucchini
Slice the zucchini into thin coins so they cook evenly and turn tender without getting mushy. Heat a generous splash of olive oil in a wide skillet over medium to medium-high heat. Working in batches so the pan isn't crowded, cook the zucchini slices until golden brown on both sides and tender, about 6–8 minutes per batch. Transfer them to a plate lined with paper towel and sprinkle lightly with salt.Boil the Spaghetti—and Save the Water
Bring a large pot of salted water to a boil and cook the spaghetti until just al dente (about 1–2 minutes shy of the package directions). Before draining, scoop out and set aside at least 1 to 1.5 cups of the starchy pasta water. That liquid is the secret to bringing the sauce together smoothly. Build the Flavor Base
In the same wide skillet over low heat, add a tablespoon or two of olive oil if the pan looks dry. Add the garlic (if using) and cook gently for 30–60 seconds until fragrant—be careful not to let it brown or turn bitter. Stir in most of the cooked zucchini rounds, saving a few nice slices for topping the bowls.Emulsify Into a Glossy Sauce
Turn the heat to very low (or briefly off the direct flame so the cheese doesn't clump). Transfer the al dente spaghetti straight into the skillet with tongs, along with about 1/2 cup of the reserved pasta water. Toss everything together while adding handfuls of grated cheese and splashes of pasta water a little at a time.Keep tossing and lifting the pasta until the starch, water, oil, and cheese form a smooth, creamy coating that clings to every strand. If it looks too thick, add another splash of warm pasta water; if it looks watery, toss a little longer or add a pinch more cheese.Finish with Basil and Serve
Remove from the heat, fold in the torn fresh basil and black pepper, and top each serving with the reserved zucchini slices and a tiny extra sprinkle of cheese. Serve right away while the sauce is glossy and warm.