What do you mean, "Transformers have primary ocpd..."? Feeder vs. Branch circuit is pretty straight forward. If the wires terminate at or before overcurrent protection, they are feeders. If they feed an outlet, they are branch circuits. Two things. Make sure you read and understand the definition of an outlet as the point between the building wiring and utilization equipment, and that overcurrent protection that is part of the equipment is not overcurrent protection as required for feeders.
Just as you need to understand that an OCPD is required for transformers. They are installed separately from transformers. They can be installed within sight of a transformer, or at a remote location (where the OCPD would then need to be marked on the transformer as to where the disconnecting means is, NEC 2023 450.14) This means that the wires feeding the transformer can be branch circuits, or feeders, depending on your interpretation of what constitutes 'Utilization Equipment'. Read through Art. 100... there are 5 different types of branch circuits. A transformer is NOT an appliance branch circuit, general purpose branch circuit, motor branch circuit, or multi-wire branch circuit. This leaves one type of branch circuit left: an individual branch circuit, which defines itself as a branch circuit that supplies one piece of utilization equipment. So, the question I ask now is, can the wires going to a transformer by definition BE a branch circuit? The answer is yes, if transformers are considered utilization equipment. Flip to utilization equipment: Equipment that utilizes electric energy for electronic (not a transformer), electromechanical (no), chemical (no), heating (no), lighting (no), or similar purposes (hmmm, maybe, but I would say no). I would say no because a transformer doesn't UTILIZE electric energy, it just changes the voltage. You could argue hysteresis and eddy currents but that isn't utilizing, that is just a side effect. That is where I am confused by the code. It is incomplete in its specification.