I don't live too far away so I can't recommend specific accommodations. One thing you must do in Ogunquit is to walk the Marginal Way - the rocky shoreline and even some of the homes backing to it are something to see.
https://newengland.com/today/travel/...gunquit-maine/
They're a little overpriced, but at the one end of the Marginal Way is Perkins Cove, and you want to get a lobster roll at Footbridge Lobster or the Lobster Shack (right next to one another). If you can find a B&B or Inn in the Perkins Cove neighborhood, that's a very nice 'hood.
The beach at Ogunquit is exceptional, gotta do at least one beach day there. Just to the south, Cape Neddick, Nubble Light, Short Sands and Long Sands beaches are also attractions. If you have time, it's not too far to Kennebunk and Kennebunkport to the north, which are also quite interesting towns.