That would be very unfair. Obama was Illinois senator for 3 terms, elected to US Senate in landslide, president of Harvard Law School, attorney, professor, liked by everyone who knew him, great listener, worked across the aisle, etc. So yes, almost stark opposites.
He was a STATE senator for ~2.5 terms. He was only elected to the US senate once. It was a landslide mostly because it's Illinois and also because he outspent his opponent $14m to $2.5m. He served half of that term most of which was spent running for president.
Worked across the aisle? Have you ever read how his major legislation was passed? Sure the Republicans were basically obstructionists, but I've never heard him to be known as "working across the aisle."