Academic education and government competitive exams are different. It is better not to mix both. You should not choose graduation for an IAS or any other exam. You should choose IAS or any other exam only after graduation. So study any subject in graduation. Only then think about a government job. You no need to pursue any post-graduation to prepare for any competitive exam. However, post-graduation helps in other ways. But don’t combine both for the benefit of the exam.