Writing With Machines and Peers: Designing for Critical Engagement with Generative AI