What does loyalty have to do with the quality of your work?
I’m all for boundaries by the way, not overworking etc, but my “best” work tends to come out unpredictably when the conditions are right. The people and project matter, but the fact that employment is transactional doesn’t really factor in for me.