Price discrimination is most valuable when the profit that is earned as a result of separating the markets is greater than the profit that is earned as a result of keeping the markets combined. Whether price discrimination works and for how long the various groups are willing to pay different prices for the same product depends on the relative elasticities of demand in the sub-markets.
So, as long as there at least 2 different parties competing, it’ll work