You're asking about a topic that sits at a complex intersection of urban design, social policy, and public welfare. Yes, there are benches specifically designed to discourage sleeping, often referred to as "anti-homeless benches" or examples of "hostile architecture.
These designs employ subtle or overt features to make prolonged lying down impossible or extremely uncomfortable. Common examples include benches with individual armrests dividing the seating space, sloped seats, segmented or curved seating surfaces, and benches with strategic metal bars or bumps. You might see them at bus stops, in parks, or outside commercial buildings.
The intent from municipalities or businesses is often stated as maintaining public order, ensuring benches are available for sitting, and discouraging vandalism or perceived loitering. However, this practice is deeply controversial. Critics argue that it's a punitive approach that criminalizes homelessness without addressing its root causes like lack of affordable housing and mental health services. It designs away a human need—rest—and can make public spaces inhospitable for everyone, including the elderly or pregnant individuals who might need to lie down.
So, while the direct answer to your question is "yes, such benches exist," the more important conversation is about the kind of cities we want to build. Are we designing inclusive spaces that serve all citizens, or are we using architecture to manage and exclude vulnerable populations? The debate around these benches reflects broader societal choices about compassion, dignity, and the use of our shared urban environment.