If I hope to enroll in a Computer Science PhD program in a top tier university (Stanford/CMU) and I currently hold a master's degree (without publication). Is a year-long Research Software development job at a reputable R&D Lab (Microsoft research lab at my country for example) or a short-term research internship at a good lab that may get my name on a paper in a good journal? Of course you may assume I cannot do both.