The hotel closest to campus is the Marriott Inn & Conference Center, University of Maryland University College, which you will find searching for the Marriott in Hyattsville, MD (although it's on campus, not in Hyattsville). It's on campus, so I wouldn't call the surroundings unattractive, but you would need to drive to get a selection of restaurants.
You don't say why you are visiting the campus. If it's for a one-time event, then, sure, stay in Bethesda, where you'll have more upscale surroundings and a much wider selection of restaurants. However, if you're visiting because a child is thinking about applying to the University of Maryland at College Park, I recommend staying in College Park so you can get a feel for the campus and its surroundings. Be sure to visit the Route 1 drag south of campus where students hang out on weekends and evenings.
I suspect, however, that you won't be able to get a room at the Marriott for anywhere near $100 a night, although you could try calling directly to see if they have anything better than the Marriott website. (It's showing $179 for the night of April 23.)