LONDON — “The Other Woman,” a romantic comedy from 21st Century Fox starring Cameron Diaz, edged aside “Captain America: The Winter Soldier,” the returning superhero blockbuster, to take first place in its weekend debut.

The new movie collected $24.7 million in U.S. and Canadian theaters, Rentrak Corp. said in an emailed statement Sunday. “The Winter Soldier” generated $16 million for Walt Disney to place second after three weeks at the top. “Heaven Is for Real,” the returning faith-based movie from Sony starring Greg Kinnear, had receipts of $13.8 million to place third.

“The Other Woman,” which opened to negative reviews, achieved the top spot on a traditionally slow weekend in Hollywood’s calendar ahead of the summer blockbuster season this week that kicks off with the release of “The Amazing Spider-Man 2.” The Diaz movie was projected to collect $16.5 million by BoxOffice.com, a downgrade from the researcher’s earlier forecast of $18 million.

“This weekend is often thought of as the calm before the storm,” said Phil Contrino, chief analyst at BoxOffice.com. “ ‘The Other Woman’ seems smart counterprogramming, with the market ready for something aimed at women.”

“Transcendence,” the sci-fi thriller starring Johnny Depp that opened last weekend, slipped to sixth place, to collect $4.1 million for Warner Bros. It was projected to garner $4.7 million. After missing estimates on its debut last weekend, Warner Bros. said the movie had failed to connect with audiences, and leaves Depp still seeking a comeback film after “The Lone Ranger,” his picture with Disney, flopped last summer.

In the two other new releases this weekend, “Brick Mansions” from Relativity Media collected $9.6 million to place fifth. It features the late Paul Walker as an undercover Detroit cop who works with an ex-con to bring down a crime lord.

“The Quiet Ones” ranked seventh, taking in $4 million for Lions Gate.