Most "first foods for baby" content leads with avocado and sweet potato. They're fine foods. But they bury the most important nutritional point about starting solids: iron.
Babies are born with iron stores they built up during the third trimester. These stores start depleting around six months — which is not a coincidence. The primary nutritional reason for starting solids at six months is iron. Everything else — calories, variety, taste exposure — matters, but iron is the urgent one.
Breast milk is extraordinary in many ways, but it's low in iron. Only about 0.3-0.4 mg of iron per liter, compared to the 11 mg per day that babies need between 7-12 months (AAP recommendation). Formula is iron-fortified, which helps, but even formula-fed babies benefit from iron-rich solid foods.
This means your first foods should include iron-rich options: meat (the best source of highly absorbable heme iron), iron-fortified cereal, lentils, beans, eggs, or tofu. Sweet potato and banana are fine additions — but they shouldn't be the only things on the menu for the first two weeks while your baby's iron needs go unmet.