Vielka Cecilia Hoy, Founder/Director at Vielka Hoy Consulting, Teacher, and Parent
Hi! I think unfortunately students are making decisions based more on these type of financial questions rather than passion. I agree with the above--you should definitely be financially literate and that should have some impact in how you make these decisions. But I would also advise you to put yourself in the position to make more money when you graduate while you have the time, meaning make yourself more marketable for higher paying jobs. You can intern, work closely with a faculty member on a project, connect with the alum network in your field from now, and/or even seek out the advice from an HR person at your dream job. The career center at your school will also have a ton of advice as well.
Just be aware that you don't want to be at a job you only kinda like because you are trying to pay student loans, especially when you can be strategic about getting your dream gig and still pay your student loans.