Yep, you are definitely over thinking this.
Bookcases often have back panels and need them as the shelves are floating. Fasten those shelves through the sides, make them 40mm thick and then they perform a very different function.
Housing joints are nice, but a screwed butt joint is drawn into...