Do the best research that you are able to do.
Look for research questions that other people will care about and that you can see a novel way to approach.
Don’t think either-or, think both-and.
Publish your work in the best conferences that you can get your work into. Also publish in the best journals that you can get your work into.
Consider going to the top conferences for your area even if you don’t have a paper in that year; get involved in some volunteer position for the conference if you need to in order to justify the expense of travel funds. Conferences are good places to meet other researchers and get a sense for current trends in the field; especially as a young faculty member, these are important.
Don’t buy into the “only-conferences-matter, conferences-are-better-than-journals” viewpoint.