Ahmed's assessment was, however, rejected by party colleague and spokesperson Satyavrat Chaturvedi who called it "absurd".
He made the comparison while taking a jibe at the Gujarat Chief Minister.
"Kejriwal has proved himself more ethical by resigning to fulfil his national ambitions, unlike Mr Modi who is still glued to CM's chair," Ahmed, who is AICC general secretary in-charge for Delhi, said on Twitter.
His comments came two days after Kejriwal resigned after suffering a defeat in the Delhi assembly on the Jan Lokpal Bill. The AAP leader had alleged a nexus between Congress and BJP to ensure that the anti-graft legislation was not passed.
Also Read
"Both (Kejriwal and Modi) can't be termed as better. One of them is novice while the other is communal. Therefore, I am of the opinion that there is no point in making such statements as such things damage the party's image," he said.
"Besides, Modi is also a communal leader who wants to destroy the country's unity with the poison of communalism.
BJP leader Vijay Goel slammed Ahmed for his remark, saying that nobody wants a "certificate" from him. He also claiemd that people wanted to see Modi as prime minister.
Before Kejriwal had quit, Congress leaders had been maintaining in private that his focus was on Lok Sabha polls and that he would not remain as Delhi Chief Minister for long as the promises his AAP party had made before the Assembly elections were difficult to fulfill.
A few days before Kejriwal's resignation, Ahmed had tweeted, "People say despite INC support AAP govt will be in minority soon due to revolt by few AAP MLAs, to hide this Mr Kejriwal will resign soon.