def compare_project_names(p1: str, p2: str) -> bool:
    """Compares project names replacing `-` with `_`.

    Args:
        p1: project name
        p2: project name to compare to
    Returns:
        True if project names are the same, otherwise False
    Raises:
        None

    """

    def replace(name):
        return name.replace("-", "_").lower()

    return replace(p1) == replace(p2)