This is not a problem young people have, this is a problem old people have.
Young people grew up with social media and are very savvy about segmenting their public persona from their private one. Young people understand intuitively that asking an edgy question on your public persona is an act of edginess in itself.
If you want to know why, the answer is that technology has weaponized the concept of push polling to its extreme (now “concern trolling” and such). As such it’s become difficult to distinguish legitimate discourse from bad-faith concern trolling. Young people understand this easily.
Older people on the other hand I’ve seen struggle with these concepts.
Regarding publishing and self-censorship in literature I can’t comment; most people aren’t publishing literature and I’m among the majority so I have no experience with that.