I think the main difference is that instant yeast is a concentrated, predictable leavening agent, while sourdough starter contains both wild yeast and lactic acid bacteria. This means it behaves differently, produces acidity and develops flavour over a longer fermentation period.
Also, a starter contains flour and water, so replacing 7g of instant yeast isn't simply a matter of swapping it gram for gram. You would need to adjust the flour and hydration in the recipe as well. That's why starting with a tested sourdough loaf recipe is usually the better approach. It's interesting how much the fermentation method can change the final bread texture and flavour!