Every branch has something to offer.
The parochialism/rivalry can be good bull, provided you understand it is just woofing.
The important part of branch selection is understanding and being honest with yourself about your talents and ambitions.
Infantry isn't for everyone. Neither is Armor. Or Aviation. Or Engineers. If your life's ambition is the manage a hospital, then Medical Service is the way. If you love supply/maintenance, or want to be a senior executive in Amazon or Walmart after you get out, Logistics is a great choice.
As a general rule, I advise prospective officers to go combat arms if they have the inclination, and don't have strong feelings about other branches.
In part, because leading Soldiers is the core function of what the Army is about. Second, Infantry & Armor -- and to a lesser extent Artillery -- provide the most flexibility. If you like it, you can stay and shoot for battalion command and beyond.
If you decide you don't like it, or are not a great fit, branch transferring is easy -- to logistics, MI, Signal, or other "shortage" branches that need a lot of CPTs. And there are also career field destinations available after the 4-year mark: Acquisition, Foreign Area Officer, Simulations, Space, Comptroller, Force Management, etc.
All those feed out of the combat arms -- and less so from more technical branches.
It is almost impossible to start as a Signal or Quartermaster officer and then decide you want to be Infantry as a CPT. I know it has happened on rare occasions, but it takes serious GO involvement. But going from Infantry to QM or Signal is usually a 4187. If you have a good file, the other branches want you. And frankly, Infantry is so competitive they will let you go if you don't want to be there.