According to my knowledge, both are good fields to choose as a career. Basically graphic designers mainly focus on what type of colors, and images they have to choose in building attractive software. Whereas UI/UX designers mainly focus on how software and user with each other. When choosing between these two fields I suggest you go for UI/UX designing because it is better to have a smooth experience with the software than to have eye feast colors in the software. So if you are planning to kick start your in this UI/UX design then I recommend you to go for Intellipaat’s UI UX Course which they help you to become a professional UI/UX designer.
If you are interested to learn with Intellipaat then before that do check out this free UI/UX tutorial video -