How far should you go in compromising your work to get it published?
When I started writing papers, my supervisors advised me that I should consider the reviewers' comments and suggestions but not be bound by them. When revising papers after reviewer feedback I would write a response letter addressing each point, whether I had incorporated the reviewer feedback or not, and importantly - why (or why not). In most cases I found that the editor considered a justification for not amending (a portion of) the paper to be acceptable.

In one case a reviewer wanted what amounted to a literature review of possible alternative solutions, which we considered to be far beyond the scope of what we were reporting in the paper and we ultimately withdrew the paper and submitted it to a different journal.