I believe that yes, it is nobler to die with integrity than to live with compromised principles that harm other because if you die with integrity the people who remember and knew you will know that you were a nice person. If you live with compromised principles that harm others then people will hate you and they won't want to be around you.