No need to choose, you can have both - there is this very nice place where software meets hardware; call it embedded, call it robotics, call it industrial automation; this is the place where software actually gets to interface to physics: read sensors, drive solenoids and motors, make things move and act and do things in the real world.
I got into this business 25 years ago and never left. Still loving every single day.