Changing group states with many elements or changing content with conditions?

Hello,

Here is what I mean:
If I am creating an onboarding experience. The upper area consists of 4 stages of input with a button in the bottom. Is it better to have 4 different button elements with a seperate workflow each or one button with conditionals to change its text with one workflow that has many conditionals.

Basically, this is a decision to be made when there are similar groups in different states in a SPA. Should do many groups or have one with conditionals that change its output?

This thread is pretty old so I’m wondering which is better now in terms of:

  1. Speed
  2. Structure
  3. Storage

Thank you!