It’s pretty much the same as here. There are 435 seats in Congress and therefore 435 separate elections. If a party lost each election by one vote, the total vote would be very close to 50%, yet the number of seats won would be zero.
Here in Alabama, if you get less than 50%, there’s a runoff of the tow top vote getters. Except for the President.
The best way, imho.