you can indeed park and walk over the bridge (enjoy the sights) or you can drive
either way when you reach the US customs, tell the officer you are doing a landing with Canada and they will direct you back to Canada
Or if you have the correct visa, you can enter US, have lunch, buy some cheap gas and the drive back and land at Canadian border control