Have you never worked on projects where the management wants to do things a certain way but you know it’s just plain wrong. The only option sometimes is to let the slow rolling disaster unfold or risk your own job. Obviously this only applies where you aren’t risking people’s lives, but there is an entire subreddit dedicated for this. (r/maliciouscompliance)
You answered this yourself. We’re not talking consumer products. We’re talking civil engineering for bridges. You also can’t just ship medical device software with no basic testing that could injure people in the software world. If someone asked me to ship regardless I’d get it in writing and ensure my objections were clearly stated and also in writing.