The branches of faith are not all of the same rank. Some are essential pillars without which faith is not valid, some are obligatory duties whose neglect is sinful, and others are recommended acts that increase and perfect a person's faith. Therefore, simply being one of the branches of faith does not necessarily mean that it is obligatory. The branches of faith include both obligatory and recommended acts of worship.
The Prophet ﷺ said:
"Faith has over seventy branches. The highest of them is the statement: 'There is no deity worthy of worship except Allah,' and the lowest of them is removing something harmful from the road, and modesty is one of the branches of faith."
This hadith demonstrates that faith consists of numerous qualities and branches that differ in rank and virtue.
The answer is: No. Not all the branches of faith are obligatory.
Among the branches of faith are:
For this reason, Ahl al-Sunnah maintain that faith includes all outward and inward acts of obedience, whether obligatory or recommended.
The hadith itself indicates that the branches of faith differ in rank.
It identifies the declaration of Tawhid as the highest branch and removing harm from the road as the lowest, demonstrating that the branches vary in both virtue and legal ruling.
Thus, they are not all of equal status; rather, they include pillars, obligations, and recommended acts.
The ruling depends on the specific branch.
For this reason, the scholars of Ahl al-Sunnah state that faith increases through obedience and decreases through disobedience, and believers differ in their level of faith according to how many of its branches they fulfill.
The scholars differed on this issue.
The stronger opinion is that the branches of faith refer to broad categories and fundamental principles under which numerous acts fall, including:
The purpose of the hadith is to encourage Muslims to acquire every form of goodness and obedience, rather than merely to identify the exact number of the branches.
And Allah knows best.