How to bend a specific part of an object or differently achieve a bend/round surface
As your base shape is a cylinder you could begin with a cylinder and use the Boolean modifier to cut off the parts you're talking about, then continue to model, create some edge loops, use the knife, and at the end add some bevels to sharp the edges: