A truck camper rides in your truck's bed; a travel trailer hitches behind. Each has real advantages.
Where you can go
A truck camper goes wherever your truck goes: narrow forest roads, steep grades and tight campsites where a trailer can't turn around. There's nothing to back up or unhitch.
Driving and parking
No towing means normal handling, easier parking and no trailer to store. A pop-up camper adds little height with the roof down, so wind and fuel economy are much better than with a tall trailer.
Space
A trailer has more room: a separate bed, bigger kitchen and often a bathroom. A pop-up camper is cozier, built for people who spend most of their time outside.
Cost and upkeep
Pop-up campers usually cost less than comparable trailers, and there are no extra tires, axles, brakes or registration for a second vehicle to maintain. In California, a truck camper doesn't need its own registration, unlike a trailer; some other states do require it, so check your state's rules.
Which should you choose?
If you want to explore off pavement, travel light, or keep things simple, a truck camper is the better fit. If you mostly stay at campgrounds and want room to spread out, a trailer may suit you. See pop-up vs. hard-side truck campers too.